public class ThrottleMediator extends AbstractMediator implements ManagedLifecycle
log, trace, traceState
Constructor and Description |
---|
ThrottleMediator() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
String |
getId() |
org.apache.axiom.om.OMElement |
getInLinePolicy()
getting throttle policy which has defined as InLineXML
|
Mediator |
getOnAcceptMediator() |
String |
getOnAcceptSeqKey() |
Mediator |
getOnRejectMediator() |
String |
getOnRejectSeqKey() |
String |
getPolicyKey()
To get the policy key - The key for which will used to lookup policy from the registry
|
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isContentAware() |
boolean |
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation.
|
void |
setId(String id) |
void |
setInLinePolicy(org.apache.axiom.om.OMElement inLinePolicy)
setting throttle policy which has defined as InLineXML
|
void |
setOnAcceptMediator(Mediator onAcceptMediator) |
void |
setOnAcceptSeqKey(String onAcceptSeqKey) |
void |
setOnRejectMediator(Mediator onRejectMediator) |
void |
setOnRejectSeqKey(String onRejectSeqKey) |
void |
setPolicyKey(String policyKey)
To set the policy key - The key for which lookup from the registry
|
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, setDescription, setEffectiveTraceState, setTraceState, shouldTrace, traceOrDebug, traceOrDebugWarn
public void init(SynapseEnvironment se)
ManagedLifecycle
init
in interface ManagedLifecycle
se
- SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycle
destroy
in interface ManagedLifecycle
public boolean mediate(MessageContext synCtx)
Mediator
public String getPolicyKey()
public void setPolicyKey(String policyKey)
policyKey
- Value for picking policy from the registrypublic org.apache.axiom.om.OMElement getInLinePolicy()
public void setInLinePolicy(org.apache.axiom.om.OMElement inLinePolicy)
inLinePolicy
- Inline policypublic String getOnRejectSeqKey()
public void setOnRejectSeqKey(String onRejectSeqKey)
public Mediator getOnRejectMediator()
public void setOnRejectMediator(Mediator onRejectMediator)
public String getOnAcceptSeqKey()
public void setOnAcceptSeqKey(String onAcceptSeqKey)
public Mediator getOnAcceptMediator()
public void setOnAcceptMediator(Mediator onAcceptMediator)
public String getId()
public void setId(String id)
public boolean isContentAware()
isContentAware
in interface Mediator
isContentAware
in class AbstractMediator
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.