public class SdkObjectStoreAdapter<T extends Serializable> extends Object implements org.mule.sdk.api.store.ObjectStore<T>
ObjectStore into the SDK api ObjectStore| Modifier and Type | Method and Description |
|---|---|
List<String> |
allKeys() |
void |
clear() |
void |
close() |
boolean |
contains(String key) |
static <T extends Serializable> |
from(Object value)
Returns an adapter which wrappers the Mule api
ObjectStore into the SDK api
org.mule.sdk.api.store.ObjectStore. |
boolean |
isPersistent() |
void |
open() |
T |
remove(String key) |
T |
retrieve(String key) |
Map |
retrieveAll() |
void |
store(String key,
T value) |
public static <T extends Serializable> org.mule.sdk.api.store.ObjectStore<T> from(Object value)
ObjectStore into the SDK api
org.mule.sdk.api.store.ObjectStore. The adapter is only created if the value was not yet adapted nor it is a native
org.mule.sdk.api.store.ObjectStore, otherwise the same instance is returned.T - the object store value's generic typevalue - the instance to be adaptedorg.mule.sdk.api.store.ObjectStore adapter, if neededpublic boolean contains(String key) throws org.mule.runtime.api.store.ObjectStoreException
contains in interface org.mule.sdk.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void store(String key, T value) throws org.mule.runtime.api.store.ObjectStoreException
store in interface org.mule.sdk.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic T retrieve(String key) throws org.mule.runtime.api.store.ObjectStoreException
retrieve in interface org.mule.sdk.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic T remove(String key) throws org.mule.runtime.api.store.ObjectStoreException
remove in interface org.mule.sdk.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic boolean isPersistent()
isPersistent in interface org.mule.sdk.api.store.ObjectStore<T extends Serializable>public void clear()
throws org.mule.runtime.api.store.ObjectStoreException
clear in interface org.mule.sdk.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void open()
throws org.mule.runtime.api.store.ObjectStoreException
open in interface org.mule.sdk.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void close()
throws org.mule.runtime.api.store.ObjectStoreException
close in interface org.mule.sdk.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic List<String> allKeys() throws org.mule.runtime.api.store.ObjectStoreException
allKeys in interface org.mule.sdk.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic Map retrieveAll() throws org.mule.runtime.api.store.ObjectStoreException
retrieveAll in interface org.mule.sdk.api.store.ObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.