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() |
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() |
void |
open()
Open the underlying store.
|
contains, remove, retrieve, storepublic boolean isPersistent()
isPersistent in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>protected boolean doContains(Serializable key)
doContains in class AbstractObjectStore<T extends Serializable>protected void doStore(Serializable key, T value) throws org.mule.runtime.api.store.ObjectStoreException
doStore in class AbstractObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected T doRetrieve(Serializable key)
doRetrieve in class AbstractObjectStore<T extends Serializable>public void clear()
throws org.mule.runtime.api.store.ObjectStoreException
clear in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected T doRemove(Serializable key)
doRemove in class AbstractObjectStore<T extends Serializable>public void open()
throws org.mule.runtime.api.store.ObjectStoreException
ListableObjectStoreopen in interface ListableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreException - if an exception occurred while opening the underlying store.public void close()
throws org.mule.runtime.api.store.ObjectStoreException
ListableObjectStoreclose in interface ListableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreException - if an exception occurred while closing the underlying store.public List<Serializable> allKeys() throws org.mule.runtime.api.store.ObjectStoreException
allKeys in interface ListableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreException - if an exception occurred while collecting the list of all keys.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.