public abstract class AbstractMonitoredObjectStore<T extends Serializable> extends Object implements org.mule.runtime.api.store.ObjectStore<T>, Runnable, MuleContextAware, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable
| Modifier and Type | Field and Description |
|---|---|
protected MuleContext |
context |
protected int |
entryTTL
The time-to-live for each message ID, specified in milliseconds, or -1 for entries that should never expire.
|
protected int |
expirationInterval
The interval for periodic bounded size enforcement and entry expiration, specified in milliseconds.
|
protected org.slf4j.Logger |
logger |
protected int |
maxEntries
the maximum number of entries that this store keeps around.
|
protected String |
name
A name for this store, can be used for logging and identification purposes.
|
| Constructor and Description |
|---|
AbstractMonitoredObjectStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
protected abstract void |
expire() |
int |
getEntryTTL() |
int |
getExpirationInterval() |
int |
getMaxEntries() |
protected MuleContext |
getMuleContext() |
String |
getName() |
void |
initialise() |
void |
run() |
void |
setEntryTTL(int entryTTL) |
void |
setExpirationInterval(int expirationInterval) |
void |
setMaxEntries(int maxEntries) |
void |
setMuleContext(MuleContext context) |
void |
setName(String id) |
protected final org.slf4j.Logger logger
protected MuleContext context
protected int maxEntries
protected int entryTTL
protected int expirationInterval
protected String name
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposableprotected MuleContext getMuleContext()
public void setEntryTTL(int entryTTL)
public void setExpirationInterval(int expirationInterval)
public void setMaxEntries(int maxEntries)
public void setName(String id)
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarecontext - the Mule node.public int getEntryTTL()
public int getExpirationInterval()
public int getMaxEntries()
public String getName()
protected abstract void expire()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.