public class DomainBaseThrottleConfiguration extends java.lang.Object implements ThrottleConfiguration
Constructor and Description |
---|
DomainBaseThrottleConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addCallerConfiguration(CallerConfiguration configuration)
To add a DomainBaseCallerConfiguration
|
CallerConfiguration |
getCallerConfiguration(java.lang.String ID)
To get a DomainBaseCallerConfiguration - if a configuration for given key found ,it returns ,
other wise , the default configuration will return.
|
java.lang.String |
getConfigurationKeyOfCaller(java.lang.String callerID)
To get key for caller configuration
if there is a configuration with callerID , it returns
otherwise ,
on the first the ID contains one or more "." ,then recursively
try to find the nearest root callerID.
|
int |
getType()
To get the type of the throttle
|
static void |
main(java.lang.String[] args) |
public CallerConfiguration getCallerConfiguration(java.lang.String ID)
getCallerConfiguration
in interface ThrottleConfiguration
ID
- - The Remote caller id (domain name)public void addCallerConfiguration(CallerConfiguration configuration)
addCallerConfiguration
in interface ThrottleConfiguration
configuration
- - The configuration of the callerpublic java.lang.String getConfigurationKeyOfCaller(java.lang.String callerID)
getConfigurationKeyOfCaller
in interface ThrottleConfiguration
callerID
- The id of the remote caller (callerID name)public int getType()
ThrottleConfiguration
getType
in interface ThrottleConfiguration
public static void main(java.lang.String[] args)
Copyright © 2005-2021 Apache Software Foundation. All Rights Reserved.