public abstract class ThrottleHandler
extends org.apache.axis2.handlers.AbstractHandler
Modifier and Type | Field and Description |
---|---|
static String |
THROTTLING_CACHE |
static String |
THROTTLING_CACHE_MANAGER |
Constructor and Description |
---|
ThrottleHandler() |
Modifier and Type | Method and Description |
---|---|
protected abstract int |
getThrottleType() |
org.apache.axis2.engine.Handler.InvocationResponse |
invoke(org.apache.axis2.context.MessageContext msgContext) |
Throttle |
loadThrottle(org.apache.axis2.context.MessageContext messageContext,
int throttleType)
Loads a throttle metadata for a particular throttle type
|
void |
process(Throttle throttle,
org.apache.axis2.context.MessageContext messageContext)
processing through the throttle
1) concurrent throttling
2) access rate based throttling - domain or ip
|
public static final String THROTTLING_CACHE_MANAGER
public static final String THROTTLING_CACHE
protected abstract int getThrottleType()
public Throttle loadThrottle(org.apache.axis2.context.MessageContext messageContext, int throttleType) throws ThrottleException
messageContext
- - The messageContextthrottleType
- - The type of throttleThrottleException
- Throws if the throttle type is unsupportedpublic void process(Throttle throttle, org.apache.axis2.context.MessageContext messageContext) throws ThrottleException, org.apache.axis2.AxisFault
throttle
- The Throttle object - holds all configuration and state data
of the throttlemessageContext
- The MessageContext , that holds all data per message basisorg.apache.axis2.AxisFault
- Throws when access must deny for callerThrottleException
- ThrottleExceptionpublic org.apache.axis2.engine.Handler.InvocationResponse invoke(org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFault
Copyright © 2005–2020 Apache Software Foundation. All rights reserved.