Class RoleBaseThrottleConfiguration
java.lang.Object
org.apache.synapse.commons.throttle.core.impl.rolebase.RoleBaseThrottleConfiguration
- All Implemented Interfaces:
ThrottleConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCallerConfiguration(CallerConfiguration callerConfiguration) To add a CallerConfiguration - The controlling policy for a callergetCallerConfiguration(String roleID) To get a CallerConfiguration - The controlling policy for a callergetConfigurationKeyOfCaller(String roleID) To get a access key for a caller (In the case of group ID)intgetType()To get the type of the throttle
-
Constructor Details
-
RoleBaseThrottleConfiguration
public RoleBaseThrottleConfiguration()
-
-
Method Details
-
addCallerConfiguration
Description copied from interface:ThrottleConfigurationTo add a CallerConfiguration - The controlling policy for a caller- Specified by:
addCallerConfigurationin interfaceThrottleConfiguration- Parameters:
callerConfiguration- The caller configuration data
-
getCallerConfiguration
Description copied from interface:ThrottleConfigurationTo get a CallerConfiguration - The controlling policy for a caller- Specified by:
getCallerConfigurationin interfaceThrottleConfiguration- Parameters:
roleID- The ID of the caller (ip/domain name)- Returns:
- CallerConfiguration
-
getConfigurationKeyOfCaller
Description copied from interface:ThrottleConfigurationTo get a access key for a caller (In the case of group ID)- Specified by:
getConfigurationKeyOfCallerin interfaceThrottleConfiguration- Parameters:
roleID- - The ID of the caller (ip/domain name)- Returns:
- String -The pre-define key with in policy
-
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
-