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 void
addCallerConfiguration(CallerConfiguration callerConfiguration)
To add a CallerConfiguration - The controlling policy for a callerCallerConfiguration
getCallerConfiguration(String roleID)
To get a CallerConfiguration - The controlling policy for a callerString
getConfigurationKeyOfCaller(String roleID)
To get a access key for a caller (In the case of group ID)int
getType()
To get the type of the throttle
-
-
-
Method Detail
-
addCallerConfiguration
public void addCallerConfiguration(CallerConfiguration callerConfiguration)
Description copied from interface:ThrottleConfiguration
To add a CallerConfiguration - The controlling policy for a caller- Specified by:
addCallerConfiguration
in interfaceThrottleConfiguration
- Parameters:
callerConfiguration
- The caller configuration data
-
getCallerConfiguration
public CallerConfiguration getCallerConfiguration(String roleID)
Description copied from interface:ThrottleConfiguration
To get a CallerConfiguration - The controlling policy for a caller- Specified by:
getCallerConfiguration
in interfaceThrottleConfiguration
- Parameters:
roleID
- The ID of the caller (ip/domain name)- Returns:
- CallerConfiguration
-
getConfigurationKeyOfCaller
public String getConfigurationKeyOfCaller(String roleID)
Description copied from interface:ThrottleConfiguration
To get a access key for a caller (In the case of group ID)- Specified by:
getConfigurationKeyOfCaller
in 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:ThrottleConfiguration
To get the type of the throttle- Specified by:
getType
in interfaceThrottleConfiguration
- Returns:
- the type of the throttle
-
-