public class ProvidedObjectStoreWrapper<T extends Serializable> extends Object implements org.mule.runtime.api.store.ObjectStore<T>, org.mule.runtime.api.lifecycle.Disposable
| Constructor and Description |
|---|
ProvidedObjectStoreWrapper(org.mule.runtime.api.store.ObjectStore<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 |
|---|---|
void |
clear() |
boolean |
contains(Serializable key) |
void |
dispose() |
protected org.mule.runtime.api.store.ObjectStore<T> |
getWrapped() |
boolean |
isPersistent() |
T |
remove(Serializable key) |
T |
retrieve(Serializable key) |
void |
store(Serializable key,
T value) |
public ProvidedObjectStoreWrapper(org.mule.runtime.api.store.ObjectStore<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 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 boolean isPersistent()
isPersistent in interface org.mule.runtime.api.store.ObjectStore<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.ObjectStoreExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposableprotected org.mule.runtime.api.store.ObjectStore<T> getWrapped()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.