Class IPBaseThrottleConfiguration
java.lang.Object
org.apache.synapse.commons.throttle.core.impl.ipbase.IPBaseThrottleConfiguration
- All Implemented Interfaces:
ThrottleConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCallerConfiguration(CallerConfiguration configuration) To add a IPBaseCallerConfigurationTo get a IPBaseCallerConfiguration - if a configuration for given key found ,it returns , other wise , the default configuration will return.getConfigurationKeyOfCaller(String callerID) To get key for access configurationintgetType()To get the type of the throttle
-
Constructor Details
-
IPBaseThrottleConfiguration
public IPBaseThrottleConfiguration()
-
-
Method Details
-
getCallerConfiguration
To get a IPBaseCallerConfiguration - if a configuration for given key found ,it returns , other wise , the default configuration will return.- Specified by:
getCallerConfigurationin interfaceThrottleConfiguration- Parameters:
ID- - The Remote caller id (IP)- Returns:
- Returns the corresponding configuration for the caller with given ID
-
addCallerConfiguration
To add a IPBaseCallerConfiguration- Specified by:
addCallerConfigurationin interfaceThrottleConfiguration- Parameters:
configuration- The configuration for a caller
-
getConfigurationKeyOfCaller
To get key for access configuration- Specified by:
getConfigurationKeyOfCallerin interfaceThrottleConfiguration- Parameters:
callerID- The remote caller id (ip)- Returns:
- Object-String representation of corrected epr-key for get configuration
-
getType
public int getType()Description copied from interface:ThrottleConfigurationTo get the type of the throttle- Specified by:
getTypein interfaceThrottleConfiguration- Returns:
- the type of the throttle
-