T - the generic type of the objects to be storedpublic interface ExpirableObjectStore<T extends Serializable> extends ObjectStore<T>
ObjectStore capable of expiring entries when the expire(long, int) method is invoked| Modifier and Type | Method and Description |
|---|---|
void |
expire(long entryTTL,
int maxEntries)
Expires eligible entries.
|
allKeys, clear, close, contains, isPersistent, open, remove, retrieve, retrieveAll, storevoid expire(long entryTTL,
int maxEntries)
throws ObjectStoreException
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 implementationObjectStoreException - in case of failureCopyright © 2021 MuleSoft, Inc.. All rights reserved.