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>
clear
public void clear()
throws ObjectStoreException
- Description copied from interface:
ObjectStore
- Removes all items of this store without disposing it, meaning that after
performing a clear(), you should still be able perform other operations.
Implementations of this method have to remove all items in the fastest way
possible. No assumptions should be made regarding thread safeness. If the
store implementation is thread-safe, then this method should also be. If the
implementation does not guarantee thread-safeness, then you shouldn't expect
that from this method either.
- Specified by:
clear in interface ObjectStore<T extends Serializable>
- Throws:
ObjectStoreException - if the operation fails
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–2014 MuleSoft, Inc.. All rights reserved.