public abstract class AbstractPartitionedObjectStore<T extends Serializable> extends Object implements PartitionableObjectStore<T>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_PARTITION |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractPartitionedObjectStore() |
| Modifier and Type | Method and Description |
|---|---|
List<Serializable> |
allKeys() |
void |
clear() |
void |
close()
Close the underlying store.
|
boolean |
contains(Serializable key) |
void |
open()
Open the underlying store.
|
T |
remove(Serializable key) |
T |
retrieve(Serializable key) |
void |
store(Serializable key,
T value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallKeys, allPartitions, clear, close, contains, disposePartition, open, remove, retrieve, storeprotected static final String DEFAULT_PARTITION
protected final org.slf4j.Logger logger
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.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.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.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.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.ObjectStoreExceptionpublic 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.ObjectStoreExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.