Uses of Class
org.apache.synapse.commons.throttle.core.ThrottleContext
Packages that use ThrottleContext
Package
Description
-
Uses of ThrottleContext in org.apache.synapse.commons.throttle.core
Methods in org.apache.synapse.commons.throttle.core that return ThrottleContextModifier and TypeMethodDescriptionThrottle.getThrottleContext(String contextID) Returns the ThrotleContext for a given key - context holds all runtime data for registered callersThrottleDataHolder.getThrottleContext(String applicationId) Methods in org.apache.synapse.commons.throttle.core with parameters of type ThrottleContextModifier and TypeMethodDescriptionvoidThrottle.addThrottleContext(String key, ThrottleContext throttleContext) Adds a ThrotleContext with the given key - context holds all runtime data for registered callersvoidThrottleContextCleanupTask.addThrottleContext(ThrottleContext throttleContext) voidThrottleDataHolder.addThrottleContext(String applicationId, ThrottleContext applicationThrottleContext) AccessRateController.canAccess(ThrottleContext throttleContext, String callerID, int callerType) To check whether caller can access not not base on the controlling policybooleanCallerContext.canAccess(ThrottleContext throttleContext, CallerConfiguration configuration, long currentTime) Check whether that caller can access or not ,based on current state and pre-defined policybooleanCallerContext.canAccess(ThrottleContext throttleContext, CallerConfiguration configuration, long currentTime, Long eventCount) Check whether that caller can access or not, based on current state and pre-defined policyRoleBasedAccessRateController.canAccess(ThrottleContext throttleContext, String consumerKey, String roleID) To check whether caller can access not not base on the controlling policyRoleBasedAccessRateController.canAccess(ThrottleContext throttleContext, String consumerKey, String roleID, Long eventCount) voidCallerContext.cleanUpCallers(CallerConfiguration configuration, ThrottleContext throttleContext, long currentTime) Clean up the callers - remove all callers that have expired their time window -
Uses of ThrottleContext in org.apache.synapse.commons.throttle.core.factory
Methods in org.apache.synapse.commons.throttle.core.factory that return ThrottleContextModifier and TypeMethodDescriptionstatic ThrottleContextThrottleContextFactory.createThrottleContext(int throttletype, ThrottleConfiguration configuration) To create a ThrottleContext for the given throttle type Needs to provide a throttle configuration -
Uses of ThrottleContext in org.apache.synapse.commons.throttle.core.impl.domainbase
Subclasses of ThrottleContext in org.apache.synapse.commons.throttle.core.impl.domainbaseModifier and TypeClassDescriptionclassHolds all the run time data for all domain based remote callers -
Uses of ThrottleContext in org.apache.synapse.commons.throttle.core.impl.ipbase
Subclasses of ThrottleContext in org.apache.synapse.commons.throttle.core.impl.ipbaseModifier and TypeClassDescriptionclassHolds all the run time data for all IP based remote callers -
Uses of ThrottleContext in org.apache.synapse.commons.throttle.core.impl.rolebase
Subclasses of ThrottleContext in org.apache.synapse.commons.throttle.core.impl.rolebase -
Uses of ThrottleContext in org.apache.synapse.commons.throttle.core.internal
Methods in org.apache.synapse.commons.throttle.core.internal with parameters of type ThrottleContextModifier and TypeMethodDescriptionbooleanDistributedThrottleProcessor.canAccessBasedOnUnitTime(CallerContext callerContext, CallerConfiguration configuration, ThrottleContext throttleContext, RequestContext requestContext) booleanDistributedThrottleProcessor.canAccessIfUnitTimeNotOver(CallerContext callerContext, CallerConfiguration configuration, ThrottleContext throttleContext, RequestContext requestContext) booleanDistributedThrottleProcessor.canAccessIfUnitTimeOver(CallerContext callerContext, CallerConfiguration configuration, ThrottleContext throttleContext, RequestContext requestContext)