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)
ThrottleConfiguration
addCallerConfiguration
in interface ThrottleConfiguration
callerConfiguration
- The caller configuration datapublic CallerConfiguration getCallerConfiguration(java.lang.String roleID)
ThrottleConfiguration
getCallerConfiguration
in interface ThrottleConfiguration
roleID
- The ID of the caller (ip/domain name)public java.lang.String getConfigurationKeyOfCaller(java.lang.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-2022 Apache Software Foundation. All Rights Reserved.