public class IPBaseThrottleConfiguration extends Object implements ThrottleConfiguration
Constructor and Description |
---|
IPBaseThrottleConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addCallerConfiguration(CallerConfiguration configuration)
To add a IPBaseCallerConfiguration
|
CallerConfiguration |
getCallerConfiguration(String ID)
To get a IPBaseCallerConfiguration - if a configuration for given key found ,it returns ,
other wise , the default configuration will return.
|
String |
getConfigurationKeyOfCaller(String callerID)
To get key for access configuration
|
int |
getType()
To get the type of the throttle
|
public CallerConfiguration getCallerConfiguration(String ID)
getCallerConfiguration
in interface ThrottleConfiguration
ID
- - The Remote caller id (IP)public void addCallerConfiguration(CallerConfiguration configuration)
addCallerConfiguration
in interface ThrottleConfiguration
configuration
- The configuration for a callerpublic String getConfigurationKeyOfCaller(String callerID)
getConfigurationKeyOfCaller
in interface ThrottleConfiguration
callerID
- The remote caller id (ip)public int getType()
ThrottleConfiguration
getType
in interface ThrottleConfiguration
Copyright © 2005–2018 Apache Software Foundation. All rights reserved.