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, store
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, remove, retrieve, store
public boolean isPersistent()
ObjectStore
isPersistent
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>
ObjectStoreException
protected T doRetrieve(Serializable key)
doRetrieve
in class AbstractObjectStore<T extends Serializable>
public void clear() throws ObjectStoreException
ObjectStore
clear
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
ListableObjectStore
open
in interface ListableObjectStore<T extends Serializable>
ObjectStoreException
- if an exception occurred while opening the underlying store.public void close() throws ObjectStoreException
ListableObjectStore
close
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–2016 MuleSoft, Inc.. All rights reserved.