public class CacheMediator extends AbstractMediator implements ManagedLifecycle
Mediatorlog, trace, traceState| Constructor and Description |
|---|
CacheMediator() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
org.wso2.caching.digest.DigestGenerator |
getDigestGenerator() |
int |
getDiskCacheSize() |
String |
getId() |
int |
getInMemoryCacheSize() |
int |
getMaxMessageSize() |
String |
getOnCacheHitRef() |
SequenceMediator |
getOnCacheHitSequence() |
String |
getScope() |
org.apache.axiom.soap.SOAPFactory |
getSOAPFactory(org.apache.axis2.context.MessageContext msgContext) |
long |
getTimeout() |
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
boolean |
isCollector() |
boolean |
mediate(MessageContext synCtx)
Invokes the mediator passing the current message for mediation.
|
void |
setCollector(boolean collector) |
void |
setDigestGenerator(org.wso2.caching.digest.DigestGenerator digestGenerator) |
void |
setDiskCacheSize(int diskCacheSize) |
void |
setId(String id) |
void |
setInMemoryCacheSize(int inMemoryCacheSize) |
void |
setMaxMessageSize(int maxMessageSize) |
void |
setOnCacheHitRef(String onCacheHitRef) |
void |
setOnCacheHitSequence(SequenceMediator onCacheHitSequence) |
void |
setScope(String scope) |
void |
setTimeout(long timeout) |
auditLog, auditWarn, configure, disableStatistics, enableStatistics, getAspectConfiguration, getDescription, getLog, getTraceState, getType, handleException, handleException, isContentAware, 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 getId()
public void setId(String id)
public String getScope()
public void setScope(String scope)
public boolean isCollector()
public void setCollector(boolean collector)
public org.wso2.caching.digest.DigestGenerator getDigestGenerator()
public void setDigestGenerator(org.wso2.caching.digest.DigestGenerator digestGenerator)
public int getInMemoryCacheSize()
public void setInMemoryCacheSize(int inMemoryCacheSize)
public int getDiskCacheSize()
public void setDiskCacheSize(int diskCacheSize)
public long getTimeout()
public void setTimeout(long timeout)
public SequenceMediator getOnCacheHitSequence()
public void setOnCacheHitSequence(SequenceMediator onCacheHitSequence)
public String getOnCacheHitRef()
public void setOnCacheHitRef(String onCacheHitRef)
public int getMaxMessageSize()
public void setMaxMessageSize(int maxMessageSize)
public org.apache.axiom.soap.SOAPFactory getSOAPFactory(org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
org.apache.axis2.AxisFaultCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.