public class PartitionedObjectStoreWrapper<T extends Serializable> extends Object implements ListableObjectStore<T>
| Constructor and Description |
|---|
PartitionedObjectStoreWrapper(String name,
MuleContext context,
ListableObjectStore<T> store) |
| Modifier and Type | Method and Description |
|---|---|
List<Serializable> |
allKeys() |
void |
clear() |
void |
close()
Close the underlying store.
|
boolean |
contains(Serializable key) |
ListableObjectStore<T> |
getBaseStore() |
boolean |
isPersistent() |
void |
open()
Open the underlying store.
|
T |
remove(Serializable key) |
T |
retrieve(Serializable key) |
void |
store(Serializable key,
T value) |
public PartitionedObjectStoreWrapper(String name, MuleContext context, ListableObjectStore<T> store)
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 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.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 boolean isPersistent()
isPersistent in interface org.mule.runtime.api.store.ObjectStore<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.public ListableObjectStore<T> getBaseStore()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.