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)
ThrottleConfiguration
addCallerConfiguration
in interface ThrottleConfiguration
callerConfiguration
- The caller configuration datapublic CallerConfiguration getCallerConfiguration(String roleID)
ThrottleConfiguration
getCallerConfiguration
in interface ThrottleConfiguration
roleID
- The ID of the caller (ip/domain name)public String getConfigurationKeyOfCaller(String roleID)
ThrottleConfiguration
getConfigurationKeyOfCaller
in interface ThrottleConfiguration
roleID
- - The ID of the caller (ip/domain name)public int getType()
ThrottleConfiguration
getType
in interface ThrottleConfiguration
Copyright © 2005–2020 Apache Software Foundation. All rights reserved.