public class HazelcastObjectStore<T extends Serializable>
extends org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<T>
implements org.mule.runtime.core.api.context.MuleContextAware, org.mule.runtime.api.lifecycle.Disposable
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL_PARTITIONS_MAP_NAME |
protected String |
appName |
static String |
DEFAULT_PARTITION_NAME |
protected com.hazelcast.core.HazelcastInstance |
instance |
protected org.mule.runtime.core.api.MuleContext |
muleContext |
static String |
PARTITION_MAP_NAME |
protected boolean |
running |
| Constructor and Description |
|---|
HazelcastObjectStore(com.hazelcast.core.HazelcastInstance instance)
Create an object store for the specified Mule application
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
allKeys() |
List<String> |
allKeys(String partitionName) |
List<String> |
allPartitions() |
void |
clear() |
void |
clear(String partitionName) |
void |
close() |
void |
close(String partitionName) |
boolean |
contains(String key) |
void |
dispose() |
void |
disposePartition(String partitionName) |
protected boolean |
doContains(String key,
String partitionName) |
protected T |
doRemove(String key,
String partitionName) |
protected T |
doRetrieve(String key,
String partitionName) |
protected void |
doStore(String key,
T value,
String partitionName) |
static String |
getObjectStorePrefix(String appName) |
boolean |
isPersistent() |
void |
open() |
void |
open(String storeName) |
T |
remove(String key) |
T |
retrieve(String key) |
Map<String,T> |
retrieveAll() |
Map<String,T> |
retrieveAll(String partitionName) |
void |
setMuleContext(org.mule.runtime.core.api.MuleContext muleContext) |
void |
store(String key,
T value) |
contains, remove, retrieve, shouldAlwaysExpire, store, validateKeyAndPartitionName, validatePresentKeyInPartitionpublic static final String DEFAULT_PARTITION_NAME
public static final String ALL_PARTITIONS_MAP_NAME
public static final String PARTITION_MAP_NAME
protected org.mule.runtime.core.api.MuleContext muleContext
protected com.hazelcast.core.HazelcastInstance instance
protected String appName
protected boolean running
public HazelcastObjectStore(com.hazelcast.core.HazelcastInstance instance)
public void setMuleContext(org.mule.runtime.core.api.MuleContext muleContext)
setMuleContext in interface org.mule.runtime.core.api.context.MuleContextAwarepublic void open()
throws org.mule.runtime.api.store.ObjectStoreException
open in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>open in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void close()
throws org.mule.runtime.api.store.ObjectStoreException
close in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>close in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic List<String> allKeys() throws org.mule.runtime.api.store.ObjectStoreException
allKeys in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>allKeys in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic Map<String,T> retrieveAll() throws org.mule.runtime.api.store.ObjectStoreException
retrieveAll in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>retrieveAll in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic boolean contains(String key) throws org.mule.runtime.api.store.ObjectStoreException
contains in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>contains in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<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>clear in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<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.runtime.api.store.ObjectStore<T extends Serializable>store in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<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.runtime.api.store.ObjectStore<T extends Serializable>retrieve in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<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.runtime.api.store.ObjectStore<T extends Serializable>remove in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<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(String storeName) throws org.mule.runtime.api.store.ObjectStoreException
open in interface org.mule.runtime.api.store.PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected boolean doContains(String key, String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
doContains in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected void doStore(String key, T value, String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
doStore in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected T doRetrieve(String key, String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
doRetrieve in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void clear(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
clear in interface org.mule.runtime.api.store.PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionprotected T doRemove(String key, String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
doRemove in class org.mule.runtime.core.internal.store.AbstractPartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic List<String> allKeys(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
allKeys in interface org.mule.runtime.api.store.PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic Map<String,T> retrieveAll(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
retrieveAll in interface org.mule.runtime.api.store.PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic List<String> allPartitions() throws org.mule.runtime.api.store.ObjectStoreException
allPartitions in interface org.mule.runtime.api.store.PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void close(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
close in interface org.mule.runtime.api.store.PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void disposePartition(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
disposePartition in interface org.mule.runtime.api.store.PartitionableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2006–2022 MuleSoft, Inc.. All rights reserved.