org.mule.util.store
Class SimpleMemoryObjectStore<T extends Serializable>
java.lang.Object
org.mule.util.store.AbstractObjectStore<T>
org.mule.util.store.SimpleMemoryObjectStore<T>
- All Implemented Interfaces:
- ListableObjectStore<T>, ObjectStore<T>
public class SimpleMemoryObjectStore<T extends Serializable>
- extends AbstractObjectStore<T>
- implements ListableObjectStore<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleMemoryObjectStore
public SimpleMemoryObjectStore()
isPersistent
public boolean isPersistent()
- Description copied from interface:
ObjectStore
- Is this store persistent?
- Specified by:
isPersistent
in interface ObjectStore<T extends Serializable>
- Returns:
- true if this store is persistent
doContains
protected boolean doContains(Serializable key)
- Specified by:
doContains
in class AbstractObjectStore<T extends Serializable>
doStore
protected void doStore(Serializable key,
T value)
throws ObjectStoreException
- Specified by:
doStore
in class AbstractObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
doRetrieve
protected T doRetrieve(Serializable key)
- Specified by:
doRetrieve
in class AbstractObjectStore<T extends Serializable>
doRemove
protected T doRemove(Serializable key)
- Specified by:
doRemove
in class AbstractObjectStore<T extends Serializable>
open
public void open()
throws ObjectStoreException
- Description copied from interface:
ListableObjectStore
- Open the underlying store.
- Specified by:
open
in interface ListableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
- if an exception occurred while opening the underlying store.
close
public void close()
throws ObjectStoreException
- Description copied from interface:
ListableObjectStore
- Close the underlying store.
- Specified by:
close
in interface ListableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
- if an exception occurred while closing the underlying store.
allKeys
public List<Serializable> allKeys()
throws ObjectStoreException
- Specified by:
allKeys
in interface ListableObjectStore<T extends Serializable>
- Returns:
- list containing all keys that this object store currently holds values for.
- Throws:
ObjectStoreException
- if an exception occurred while collecting the list of all keys.
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.