public class PartitionedInMemoryObjectStore<T extends Serializable> extends AbstractPartitionedObjectStore<T> implements PartitionableExpirableObjectStore<T>
DEFAULT_PARTITION, logger| Constructor and Description |
|---|
PartitionedInMemoryObjectStore() |
| Modifier and Type | Method and Description |
|---|---|
List<Serializable> |
allKeys(String partitionName) |
List<String> |
allPartitions() |
void |
clear(String partitionName) |
void |
close(String partitionName) |
boolean |
contains(Serializable key,
String partitionName) |
void |
disposePartition(String partitionName) |
void |
expire(long entryTTL,
int maxEntries) |
void |
expire(long entryTTL,
int maxEntries,
String partitionName) |
protected long |
getCurrentNanoTime() |
boolean |
isPersistent() |
void |
open(String partitionName) |
T |
remove(Serializable key,
String partitionName) |
T |
retrieve(Serializable key,
String partitionName) |
void |
store(Serializable key,
T value,
String partitionName) |
allKeys, clear, close, contains, open, remove, retrieve, storeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallKeys, close, openpublic boolean isPersistent()
isPersistent in interface org.mule.runtime.api.store.ObjectStore<T extends Serializable>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 void clear(String partitionName) throws org.mule.runtime.api.store.ObjectStoreException
clear 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 expire(long entryTTL,
int maxEntries)
throws org.mule.runtime.api.store.ObjectStoreException
expire in interface ExpirableObjectStore<T extends Serializable>org.mule.runtime.api.store.ObjectStoreExceptionpublic void expire(long entryTTL,
int maxEntries,
String partitionName)
throws org.mule.runtime.api.store.ObjectStoreException
expire in interface PartitionableExpirableObjectStore<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.ObjectStoreExceptionprotected long getCurrentNanoTime()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.