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, traceOrDebugWarnpublic void init(SynapseEnvironment se)
ManagedLifecycleinit in interface ManagedLifecyclese - SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycledestroy in interface ManagedLifecyclepublic boolean mediate(MessageContext synCtx)
Mediatorpublic 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 MediatorisContentAware in class AbstractMediatorCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.