public abstract class AbstractMonitoredObjectStore extends Object implements ObjectStore, Runnable, MuleContextAware, Initialisable, Disposable
| Modifier and Type | Field and Description |
|---|---|
protected MuleContext |
context |
protected int |
entryTTL |
protected int |
expirationInterval |
protected org.apache.commons.logging.Log |
logger |
protected int |
maxEntries |
protected String |
name |
protected edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor |
scheduler
Default constructor for IdempotentInMemoryMessageIdStore.
|
PHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
AbstractMonitoredObjectStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
protected abstract void |
expire() |
int |
getEntryTTL() |
int |
getExpirationInterval() |
int |
getMaxEntries() |
String |
getName() |
edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor |
getScheduler() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
run() |
void |
setEntryTTL(int entryTTL) |
void |
setExpirationInterval(int expirationInterval) |
void |
setMaxEntries(int maxEntries) |
void |
setMuleContext(MuleContext context) |
void |
setName(String id) |
void |
setScheduler(edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor scheduler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsObject, removeObject, retrieveObject, storeObjectprotected final org.apache.commons.logging.Log logger
protected edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor scheduler
protected int maxEntries
protected int entryTTL
protected int expirationInterval
protected String name
protected MuleContext context
public void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic void dispose()
dispose in interface Disposablepublic void setEntryTTL(int entryTTL)
public void setExpirationInterval(int expirationInterval)
public void setMaxEntries(int maxEntries)
public void setScheduler(edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor scheduler)
public void setName(String id)
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic int getEntryTTL()
public int getExpirationInterval()
public int getMaxEntries()
public String getName()
public edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor getScheduler()
protected abstract void expire()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.