public class RoleBaseThrottleConfiguration extends 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(String roleID)
To get a CallerConfiguration - The controlling policy for a caller
|
String |
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
|
public void addCallerConfiguration(CallerConfiguration callerConfiguration)
ThrottleConfigurationaddCallerConfiguration in interface ThrottleConfigurationcallerConfiguration - The caller configuration datapublic CallerConfiguration getCallerConfiguration(String roleID)
ThrottleConfigurationgetCallerConfiguration in interface ThrottleConfigurationroleID - The ID of the caller (ip/domain name)public String getConfigurationKeyOfCaller(String roleID)
ThrottleConfigurationgetConfigurationKeyOfCaller in interface ThrottleConfigurationroleID - - The ID of the caller (ip/domain name)public int getType()
ThrottleConfigurationgetType in interface ThrottleConfigurationCopyright © 2005–2019 Apache Software Foundation. All rights reserved.