public class SimpleMemoryObjectStore<T extends Serializable> extends AbstractObjectStore<T> implements ListableObjectStore<T>
logger| Constructor and Description |
|---|
SimpleMemoryObjectStore() |
| Modifier and Type | Method and Description |
|---|---|
List<Serializable> |
allKeys() |
void |
clear()
Removes all items of this store without disposing it, meaning that after
performing a clear(), you should still be able perform other operations.
|
void |
close()
Close the underlying store.
|
protected boolean |
doContains(Serializable key) |
protected T |
doRemove(Serializable key) |
protected T |
doRetrieve(Serializable key) |
protected void |
doStore(Serializable key,
T value) |
boolean |
isPersistent()
Is this store persistent?
|
void |
open()
Open the underlying store.
|
contains, remove, retrieve, storeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, remove, retrieve, storepublic boolean isPersistent()
ObjectStoreisPersistent in interface ObjectStore<T extends Serializable>protected boolean doContains(Serializable key)
doContains in class AbstractObjectStore<T extends Serializable>protected void doStore(Serializable key, T value) throws ObjectStoreException
doStore in class AbstractObjectStore<T extends Serializable>ObjectStoreExceptionprotected T doRetrieve(Serializable key)
doRetrieve in class AbstractObjectStore<T extends Serializable>public void clear()
throws ObjectStoreException
ObjectStoreclear in interface ObjectStore<T extends Serializable>ObjectStoreException - if the operation failsprotected T doRemove(Serializable key)
doRemove in class AbstractObjectStore<T extends Serializable>public void open()
throws ObjectStoreException
ListableObjectStoreopen in interface ListableObjectStore<T extends Serializable>ObjectStoreException - if an exception occurred while opening the underlying store.public void close()
throws ObjectStoreException
ListableObjectStoreclose in interface ListableObjectStore<T extends Serializable>ObjectStoreException - if an exception occurred while closing the underlying store.public List<Serializable> allKeys() throws ObjectStoreException
allKeys in interface ListableObjectStore<T extends Serializable>ObjectStoreException - if an exception occurred while collecting the list of all keys.Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.