T - the generic type of the objects to be storedpublic interface PartitionableExpirableObjectStore<T extends Serializable> extends ExpirableObjectStore<T>, PartitionableObjectStore<T>
PartitionableObjectStore which is also an ExpirableObjectStoreDEFAULT_PARTITION_NAME| Modifier and Type | Method and Description |
|---|---|
void |
expire(long entryTTL,
int maxEntries,
String partitionName)
Expires eligible entries in the given
partitionName. |
expireallKeys, allPartitions, clear, close, contains, disposePartition, open, remove, retrieve, retrieveAll, storeallKeys, clear, close, contains, isPersistent, open, remove, retrieve, retrieveAll, storevoid expire(long entryTTL,
int maxEntries,
String partitionName)
throws ObjectStoreException
partitionName. This method is required to be
thread safe and atomic, meaning that while running, all other methods must wait for it to finish.entryTTL - expire all entries which were inserted after this number of milliseconds. If lower or equal than zero,
no items will be expired on a TTL basismaxEntries - The max number of entries that this store is allowed to have. If the store has more entries than this,
it will start removing entries until the boundary is met. The selection criteria is up to each implementationpartitionName - the name of the partition to expireObjectStoreException - in case of failureCopyright © 2017 MuleSoft, Inc.. All rights reserved.