*/
public static CallerConfiguration createCallerConfiguration(int throttletype) throws ThrottleException {
if (ThrottleConstants.IP_BASE == throttletype) {
return new IPBaseCallerConfiguration();
} else if (ThrottleConstants.DOMAIN_BASE == throttletype) {
return new DomainBaseCallerConfiguration();
} else {
throw new ThrottleException("Unknown throttle type");
}
}