Interface ThrottleConfiguration
- All Known Implementing Classes:
DomainBaseThrottleConfiguration,IPBaseThrottleConfiguration,RoleBaseThrottleConfiguration
public interface ThrottleConfiguration
The abstraction to holds all the controlling policy parameter
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCallerConfiguration(CallerConfiguration callerConfiguration) To add a CallerConfiguration - The controlling policy for a callerTo get a CallerConfiguration - The controlling policy for a callergetConfigurationKeyOfCaller(String callerID) To get a access key for a caller (In the case of group ID)intgetType()To get the type of the throttle
-
Method Details
-
addCallerConfiguration
To add a CallerConfiguration - The controlling policy for a caller- Parameters:
callerConfiguration- The caller configuration data
-
getCallerConfiguration
To get a CallerConfiguration - The controlling policy for a caller- Parameters:
ID- The ID of the caller (ip/domain name)- Returns:
- CallerConfiguration
-
getConfigurationKeyOfCaller
To get a access key for a caller (In the case of group ID)- Parameters:
callerID- - The ID of the caller (ip/domain name)- Returns:
- String -The pre-define key with in policy
-
getType
int getType()To get the type of the throttle- Returns:
- the type of the throttle
-