Class RoleBaseThrottleConfiguration
- java.lang.Object
-
- org.apache.synapse.commons.throttle.core.impl.rolebase.RoleBaseThrottleConfiguration
-
- All Implemented Interfaces:
ThrottleConfiguration
public class RoleBaseThrottleConfiguration extends Object implements ThrottleConfiguration
-
-
Constructor Summary
Constructors Constructor Description RoleBaseThrottleConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCallerConfiguration(CallerConfiguration callerConfiguration)To add a CallerConfiguration - The controlling policy for a callerCallerConfigurationgetCallerConfiguration(String roleID)To get a CallerConfiguration - The controlling policy for a callerStringgetConfigurationKeyOfCaller(String roleID)To get a access key for a caller (In the case of group ID)intgetType()To get the type of the throttle
-
-
-
Method Detail
-
addCallerConfiguration
public void addCallerConfiguration(CallerConfiguration callerConfiguration)
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
public CallerConfiguration getCallerConfiguration(String roleID)
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
public String getConfigurationKeyOfCaller(String roleID)
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
-
-