org.mule.util.store
Class MuleObjectStoreManager

java.lang.Object
  extended by org.mule.util.store.MuleObjectStoreManager
All Implemented Interfaces:
MuleContextAware, Disposable, Initialisable, ObjectStoreManager

public class MuleObjectStoreManager
extends Object
implements ObjectStoreManager, MuleContextAware, Initialisable, Disposable


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
<T extends ObjectStore<? extends Serializable>>
T
getObjectStore(String name)
          Return the partition of the default in-memory store with the given name, creating it if necessary.
<T extends ObjectStore<? extends Serializable>>
T
getObjectStore(String name, boolean isPersistent)
          Return the partition of the default in-memory or persistent store with the given name, creating it if necessary.
<T extends ObjectStore<? extends Serializable>>
T
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

scheduler

protected ScheduledThreadPoolExecutor scheduler
Constructor Detail

MuleObjectStoreManager

public MuleObjectStoreManager()
Method Detail

getObjectStore

public <T extends ObjectStore<? extends Serializable>> T getObjectStore(String name)
Description copied from interface: ObjectStoreManager
Return the partition of the default in-memory store with the given name, creating it if necessary.

Specified by:
getObjectStore in interface ObjectStoreManager

getObjectStore

public <T extends ObjectStore<? extends Serializable>> T getObjectStore(String name,
                                                                        boolean isPersistent)
Description copied from interface: ObjectStoreManager
Return the partition of the default in-memory or persistent store with the given name, creating it if necessary.

Specified by:
getObjectStore in interface ObjectStoreManager

getObjectStore

public <T extends ObjectStore<? extends Serializable>> T getObjectStore(String name,
                                                                        boolean isPersistent,
                                                                        int maxEntries,
                                                                        int entryTTL,
                                                                        int expirationInterval)
Description copied from interface: ObjectStoreManager
Return the monitored partition of the default in-memory or persistent store with the given name, creating it if necessary.

Specified by:
getObjectStore in interface ObjectStoreManager

setMuleContext

public void setMuleContext(MuleContext context)
Specified by:
setMuleContext in interface MuleContextAware

clearStoreCache

public void clearStoreCache()

dispose

public void dispose()
Description copied from interface: Disposable
A lifecycle method where implementor should free up any resources. If an exception is thrown it should just be logged and processing should continue. This method should not throw Runtime exceptions.

Specified by:
dispose in interface Disposable

initialise

public void initialise()
                throws InitialisationException
Description copied from interface: Initialisable
Method used to perform any initialisation work. If a fatal error occurs during initialisation an 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.

Specified by:
initialise in interface Initialisable
Throws:
InitialisationException - if a fatal error occurs causing the Mule instance to shutdown
RecoverableException - if an error occurs that can be recovered from

disposeStore

public void disposeStore(ObjectStore<? extends Serializable> store)
                  throws ObjectStoreException
Description copied from interface: ObjectStoreManager
Delete all objects from the partition

Specified by:
disposeStore in interface ObjectStoreManager
Throws:
ObjectStoreException


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.