public class CacheMediator
extends org.wso2.carbon.mediator.service.ui.AbstractListMediator
Constructor and Description |
---|
CacheMediator() |
Modifier and Type | Method and Description |
---|---|
void |
build(org.apache.axiom.om.OMElement elem)
Creates the cache mediator with given configuration XML as OMElement
|
String |
getDigestGenerator()
This method gives the DigestGenerator to evaluate the hash values of incoming messages.
|
int |
getDiskCacheSize()
This method gives the size of the messages to be cached in disk.
|
String |
getId()
This methods gives the ID of the cache configuration.
|
int |
getInMemoryCacheSize()
This method gives the size of the messages to be cached in memory.
|
int |
getMaxMessageSize()
This method gives the maximum size of the messages to be cached in bytes.
|
String |
getOnCacheHitRef()
This method gives reference to the onCacheHit sequence to be executed.
|
String |
getScope()
This method gives the scope of the cache.
|
String |
getTagLocalName()
This method gives the local name of the mediator.
|
long |
getTimeout()
This method gives the timeout period in milliseconds.
|
boolean |
isCollector()
This method gives whether the mediator should be in the incoming path or in the outgoing path as a boolean.
|
org.apache.axiom.om.OMElement |
serialize(org.apache.axiom.om.OMElement parent)
Creates XML representation of the cache mediator as an OMElement
|
void |
setCollector(boolean collector)
This method sets whether the mediator should be in the incoming path or in the outgoing path as a boolean.
|
void |
setDigestGenerator(String digestGenerator)
This method sets the DigestGenerator to evaluate the hash values of incoming messages.
|
void |
setDiskCacheSize(int diskCacheSize)
This method sets the size of the messages to be cached in disk.
|
void |
setId(String id)
This methods sets the ID of the cache configuration.
|
void |
setInMemoryCacheSize(int inMemoryCacheSize)
This method sets the size of the messages to be cached in memory.
|
void |
setMaxMessageSize(int maxMessageSize)
This method sets the maximum size of the messages to be cached in bytes.
|
void |
setOnCacheHitRef(String onCacheHitRef)
This method sets reference to the onCacheHit sequence to be executed.
|
void |
setScope(String scope)
This method sets the scope of the cache.
|
void |
setTimeout(long timeout)
This method sets the timeout period as milliseconds.
|
addChild, addChildren, getChild, getList, removeChild, removeChild, serializeChildren
collectNameValuePairs, disableStatistics, enableStatistics, getMediatorProperties, getTraceState, isAuditConfigurable, isStatisticsEnable, processAuditStatus, saveTracingState, serializeMediatorProperties, serializeNamespaces, setAuditConfigurable, setTraceState
public String getId()
public void setId(String id)
id
- cache configuration ID to be set.public String getScope()
public void setScope(String scope)
scope
- cache scope to be set.public boolean isCollector()
public void setCollector(boolean collector)
collector
- boolean value to be set as collector.public String getDigestGenerator()
public void setDigestGenerator(String digestGenerator)
digestGenerator
- Name of the digestGenerator to be set to evaluate hash values.public int getInMemoryCacheSize()
public void setInMemoryCacheSize(int inMemoryCacheSize)
inMemoryCacheSize
- value(number of bytes) to be set as memory cache size.public int getDiskCacheSize()
public void setDiskCacheSize(int diskCacheSize)
diskCacheSize
- value(number of bytes) to be set as disk cache size.public long getTimeout()
public void setTimeout(long timeout)
timeout
- millisecond timeout period to be set.public String getOnCacheHitRef()
public void setOnCacheHitRef(String onCacheHitRef)
onCacheHitRef
- reference to the onCacheHit sequence to be set.public int getMaxMessageSize()
public void setMaxMessageSize(int maxMessageSize)
maxMessageSize
- maximum size of the messages to be set in bytes.public String getTagLocalName()
public org.apache.axiom.om.OMElement serialize(org.apache.axiom.om.OMElement parent)
parent
- OMElement which take child as created OMElementpublic void build(org.apache.axiom.om.OMElement elem)
elem
- OMElement to be converted to cache mediator Object.Copyright © 2017 WSO2. All rights reserved.