org.mule.util.store
Class PartitionedInMemoryObjectStore<T extends Serializable>
java.lang.Object
org.mule.util.store.AbstractPartitionedObjectStore<T>
org.mule.util.store.PartitionedInMemoryObjectStore<T>
- All Implemented Interfaces:
- ExpirableObjectStore<T>, ListableObjectStore<T>, ObjectStore<T>, PartitionableExpirableObjectStore<T>, PartitionableObjectStore<T>
public class PartitionedInMemoryObjectStore<T extends Serializable>
- extends AbstractPartitionedObjectStore<T>
- implements PartitionableExpirableObjectStore<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartitionedInMemoryObjectStore
public PartitionedInMemoryObjectStore()
isPersistent
public boolean isPersistent()
- Description copied from interface:
ObjectStore
- Is this store persistent?
- Specified by:
isPersistent
in interface ObjectStore<T extends Serializable>
- Returns:
- true if this store is persistent
contains
public boolean contains(Serializable key,
String partitionName)
throws ObjectStoreException
- Specified by:
contains
in interface PartitionableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
store
public void store(Serializable key,
T value,
String partitionName)
throws ObjectStoreException
- Specified by:
store
in interface PartitionableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
retrieve
public T retrieve(Serializable key,
String partitionName)
throws ObjectStoreException
- Specified by:
retrieve
in interface PartitionableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
remove
public T remove(Serializable key,
String partitionName)
throws ObjectStoreException
- Specified by:
remove
in interface PartitionableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
allKeys
public List<Serializable> allKeys(String partitionName)
throws ObjectStoreException
- Specified by:
allKeys
in interface PartitionableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
allPartitions
public List<String> allPartitions()
throws ObjectStoreException
- Specified by:
allPartitions
in interface PartitionableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
open
public void open(String partitionName)
throws ObjectStoreException
- Specified by:
open
in interface PartitionableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
close
public void close(String partitionName)
throws ObjectStoreException
- Specified by:
close
in interface PartitionableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
expire
public void expire(int entryTTL,
int maxEntries)
throws ObjectStoreException
- Specified by:
expire
in interface ExpirableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
expire
public void expire(int entryTTL,
int maxEntries,
String partitionName)
throws ObjectStoreException
- Specified by:
expire
in interface PartitionableExpirableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
disposePartition
public void disposePartition(String partitionName)
throws ObjectStoreException
- Specified by:
disposePartition
in interface PartitionableObjectStore<T extends Serializable>
- Throws:
ObjectStoreException
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.