Home » synapse-1.2-src » org.apache.synapse.mediators.throttle » [javadoc | source]
org.apache.synapse.mediators.throttle
public class: ThrottleMediator [javadoc | source]
java.lang.Object
   org.apache.synapse.mediators.AbstractMediator
      org.apache.synapse.mediators.throttle.ThrottleMediator

All Implemented Interfaces:
    Mediator

The Mediator for the throttling - Throtting will occur according to the ws-policy which is specified as the key for lookup from the registry or the inline policy Only support IP based throttling- Throotling can manage per IP using the throttle policy
Fields inherited from org.apache.synapse.mediators.AbstractMediator:
log,  trace,  traceState
Constructor:
 public ThrottleMediator() 
Method from org.apache.synapse.mediators.throttle.ThrottleMediator Summary:
getId,   getInLinePolicy,   getOnAcceptMediator,   getOnAcceptSeqKey,   getOnRejectMediator,   getOnRejectSeqKey,   getPolicyKey,   getType,   mediate,   setId,   setInLinePolicy,   setOnAcceptMediator,   setOnAcceptSeqKey,   setOnRejectMediator,   setOnRejectSeqKey,   setPolicyKey
Methods from org.apache.synapse.mediators.AbstractMediator:
auditLog,   auditWarn,   getTraceState,   getType,   handleException,   handleException,   isTraceOn,   isTraceOrDebugOn,   setEffectiveTraceState,   setTraceState,   shouldTrace,   traceOrDebug,   traceOrDebugWarn
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.synapse.mediators.throttle.ThrottleMediator Detail:
 public String getId() 
 public OMElement getInLinePolicy() 
    getting throttle policy which has defined as InLineXML
 public Mediator getOnAcceptMediator() 
 public String getOnAcceptSeqKey() 
 public Mediator getOnRejectMediator() 
 public String getOnRejectSeqKey() 
 public String getPolicyKey() 
    To get the policy key - The key for which will used to lookup policy from the registry
 public String getType() 
 public boolean mediate(MessageContext synCtx) 
 public  void setId(String id) 
 public  void setInLinePolicy(OMElement inLinePolicy) 
    setting throttle policy which has defined as InLineXML
 public  void setOnAcceptMediator(Mediator onAcceptMediator) 
 public  void setOnAcceptSeqKey(String onAcceptSeqKey) 
 public  void setOnRejectMediator(Mediator onRejectMediator) 
 public  void setOnRejectSeqKey(String onRejectSeqKey) 
 public  void setPolicyKey(String policyKey) 
    To set the policy key - The key for which lookup from the registry