public class ProvidedPartitionableObjectStoreWrapper<T extends Serializable> extends ProvidedObjectStoreWrapper<T> implements PartitionableObjectStore<T>
| Constructor and Description |
|---|
ProvidedPartitionableObjectStoreWrapper(PartitionableObjectStore<T> providedObjectStore,
Supplier<org.mule.runtime.api.store.ObjectStore> objectStoreSupplier)
Wraps the
providedObjectStore if given, or uses the objectStoreSupplier to create one. |
| Modifier and Type | Method and Description |
|---|---|
List<Serializable> |
allKeys() |
List<Serializable> |
allKeys(String partitionName) |
List<String> |
allPartitions() |
void |
clear(String partitionName) |
void |
close()
Close the underlying store.
|
void |
close(String partitionName) |
boolean |
contains(Serializable key,
String partitionName) |
void |
disposePartition(String partitionName) |
protected PartitionableObjectStore<T> |
getWrapped() |
void |
open()
Open the underlying store.
|
void |
open(String partitionName) |
T |
remove(Serializable key,
String partitionName) |
T |
retrieve(Serializable key,
String partitionName) |
void |
store(Serializable key,
T value,
String partitionName) |
clear, contains, dispose, isPersistent, remove, retrieve, storepublic ProvidedPartitionableObjectStoreWrapper(PartitionableObjectStore<T> providedObjectStore, Supplier<org.mule.runtime.api.store.ObjectStore> objectStoreSupplier)
providedObjectStore if given, or uses the objectStoreSupplier to create one.providedObjectStore - the objectStroe provided through config to use. May be null.objectStoreSupplier - provides the object store to use if providedObjectStore is null.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, String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
contains in interface PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void store(Serializable key, T value, String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
store in interface PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic T retrieve(Serializable key, String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
retrieve in interface PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic T remove(Serializable key, String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
remove in interface PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic List<Serializable> allKeys(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
allKeys in interface PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic List<String> allPartitions() throws org.mule.runtime.api.store.ObjectStoreException
allPartitions in interface PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void open(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
open in interface PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void close(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
close in interface PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void disposePartition(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
disposePartition in interface PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void clear(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
clear in interface PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected PartitionableObjectStore<T> getWrapped()
getWrapped in class ProvidedObjectStoreWrapper<T extends Serializable>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.