public class AccessRateController extends Object
Constructor and Description |
---|
AccessRateController() |
Modifier and Type | Method and Description |
---|---|
AccessInformation |
canAccess(ThrottleContext throttleContext,
String callerID,
int callerType)
To check whether caller can access not not base on the controlling policy
|
public AccessInformation canAccess(ThrottleContext throttleContext, String callerID, int callerType) throws ThrottleException
throttleContext
- - current states of throttle - RunTime DatacallerID
- - Identifier for remote caller - ex: ip or domainnamecallerType
- - the type of the callerThrottleException
Copyright © 2005–2020 Apache Software Foundation. All rights reserved.