public abstract class AbstractObjectStore<T extends Serializable> extends Object implements org.mule.runtime.api.store.ObjectStore<T>
ObjectStore implementations that conforms to the contract defined in the interface's
javadocs. Subclasses only need to implement storing the actual objects.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractObjectStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Serializable key) |
protected abstract boolean |
doContains(Serializable key) |
protected abstract T |
doRemove(Serializable key) |
protected abstract T |
doRetrieve(Serializable key) |
protected abstract void |
doStore(Serializable key,
T value) |
T |
remove(Serializable key) |
T |
retrieve(Serializable key) |
void |
store(Serializable key,
T value) |
public boolean contains(Serializable key) throws org.mule.runtime.api.store.ObjectStoreException
contains in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected abstract boolean doContains(Serializable key) throws org.mule.runtime.api.store.ObjectStoreException
org.mule.runtime.api.store.ObjectStoreExceptionpublic void store(Serializable key, T value) throws org.mule.runtime.api.store.ObjectStoreException
store in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected abstract void doStore(Serializable key, T value) throws org.mule.runtime.api.store.ObjectStoreException
org.mule.runtime.api.store.ObjectStoreExceptionpublic T retrieve(Serializable key) throws org.mule.runtime.api.store.ObjectStoreException
retrieve in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected abstract T doRetrieve(Serializable key) throws org.mule.runtime.api.store.ObjectStoreException
org.mule.runtime.api.store.ObjectStoreExceptionpublic T remove(Serializable key) throws org.mule.runtime.api.store.ObjectStoreException
remove in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected abstract T doRemove(Serializable key) throws org.mule.runtime.api.store.ObjectStoreException
org.mule.runtime.api.store.ObjectStoreExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.