|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.util.store.MuleObjectStoreManager
public class MuleObjectStoreManager
Field Summary | |
---|---|
protected ScheduledThreadPoolExecutor |
scheduler
|
Fields inherited from interface org.mule.api.lifecycle.Initialisable |
---|
PHASE_NAME |
Fields inherited from interface org.mule.api.lifecycle.Disposable |
---|
PHASE_NAME |
Constructor Summary | |
---|---|
MuleObjectStoreManager()
|
Method Summary | ||
---|---|---|
void |
clearStoreCache()
|
|
void |
dispose()
A lifecycle method where implementor should free up any resources. |
|
void |
disposeStore(ObjectStore<? extends Serializable> store)
Delete all objects from the partition |
|
|
getObjectStore(String name)
Return the partition of the default in-memory store with the given name, creating it if necessary. |
|
|
getObjectStore(String name,
boolean isPersistent)
Return the partition of the default in-memory or persistent store with the given name, creating it if necessary. |
|
|
getObjectStore(String name,
boolean isPersistent,
int maxEntries,
int entryTTL,
int expirationInterval)
Return the monitored partition of the default in-memory or persistent store with the given name, creating it if necessary. |
|
void |
initialise()
Method used to perform any initialisation work. |
|
void |
setMuleContext(MuleContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ScheduledThreadPoolExecutor scheduler
Constructor Detail |
---|
public MuleObjectStoreManager()
Method Detail |
---|
public <T extends ObjectStore<? extends Serializable>> T getObjectStore(String name)
ObjectStoreManager
getObjectStore
in interface ObjectStoreManager
public <T extends ObjectStore<? extends Serializable>> T getObjectStore(String name, boolean isPersistent)
ObjectStoreManager
getObjectStore
in interface ObjectStoreManager
public <T extends ObjectStore<? extends Serializable>> T getObjectStore(String name, boolean isPersistent, int maxEntries, int entryTTL, int expirationInterval)
ObjectStoreManager
getObjectStore
in interface ObjectStoreManager
public void setMuleContext(MuleContext context)
setMuleContext
in interface MuleContextAware
public void clearStoreCache()
public void dispose()
Disposable
dispose
in interface Disposable
public void initialise() throws InitialisationException
Initialisable
InitialisationException
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 Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered frompublic void disposeStore(ObjectStore<? extends Serializable> store) throws ObjectStoreException
ObjectStoreManager
disposeStore
in interface ObjectStoreManager
ObjectStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |