public class RoleBaseThrottleConfiguration extends java.lang.Object implements ThrottleConfiguration
| Constructor and Description |
|---|
RoleBaseThrottleConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallerConfiguration(CallerConfiguration callerConfiguration)
To add a CallerConfiguration - The controlling policy for a caller
|
CallerConfiguration |
getCallerConfiguration(java.lang.String roleID)
To get a CallerConfiguration - The controlling policy for a caller
|
java.lang.String |
getConfigurationKeyOfCaller(java.lang.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
|
public void addCallerConfiguration(CallerConfiguration callerConfiguration)
ThrottleConfigurationaddCallerConfiguration in interface ThrottleConfigurationcallerConfiguration - The caller configuration datapublic CallerConfiguration getCallerConfiguration(java.lang.String roleID)
ThrottleConfigurationgetCallerConfiguration in interface ThrottleConfigurationroleID - The ID of the caller (ip/domain name)public java.lang.String getConfigurationKeyOfCaller(java.lang.String roleID)
ThrottleConfigurationgetConfigurationKeyOfCaller in interface ThrottleConfigurationroleID - - The ID of the caller (ip/domain name)public int getType()
ThrottleConfigurationgetType in interface ThrottleConfigurationCopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.