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(int entryTTL,
int maxEntries) |
void |
expire(int entryTTL,
int maxEntries,
String partitionName) |
protected long |
getCurrentNanoTime() |
boolean |
isPersistent()
Is this store persistent?
|
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, store
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allKeys, close, open
public boolean isPersistent()
ObjectStore
isPersistent
in interface ObjectStore<T extends Serializable>
public boolean contains(Serializable key, String partitionName) throws ObjectStoreException
contains
in interface PartitionableObjectStore<T extends Serializable>
ObjectStoreException
public void store(Serializable key, T value, String partitionName) throws ObjectStoreException
store
in interface PartitionableObjectStore<T extends Serializable>
ObjectStoreException
public T retrieve(Serializable key, String partitionName) throws ObjectStoreException
retrieve
in interface PartitionableObjectStore<T extends Serializable>
ObjectStoreException
public T remove(Serializable key, String partitionName) throws ObjectStoreException
remove
in interface PartitionableObjectStore<T extends Serializable>
ObjectStoreException
public List<Serializable> allKeys(String partitionName) throws ObjectStoreException
allKeys
in interface PartitionableObjectStore<T extends Serializable>
ObjectStoreException
public void clear(String partitionName) throws ObjectStoreException
clear
in interface PartitionableObjectStore<T extends Serializable>
ObjectStoreException
public List<String> allPartitions() throws ObjectStoreException
allPartitions
in interface PartitionableObjectStore<T extends Serializable>
ObjectStoreException
public void open(String partitionName) throws ObjectStoreException
open
in interface PartitionableObjectStore<T extends Serializable>
ObjectStoreException
public void close(String partitionName) throws ObjectStoreException
close
in interface PartitionableObjectStore<T extends Serializable>
ObjectStoreException
public void expire(int entryTTL, int maxEntries) throws ObjectStoreException
expire
in interface ExpirableObjectStore<T extends Serializable>
ObjectStoreException
public void expire(int entryTTL, int maxEntries, String partitionName) throws ObjectStoreException
expire
in interface PartitionableExpirableObjectStore<T extends Serializable>
ObjectStoreException
public void disposePartition(String partitionName) throws ObjectStoreException
disposePartition
in interface PartitionableObjectStore<T extends Serializable>
ObjectStoreException
protected long getCurrentNanoTime()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.