public interface PurgeableStorage
Modifier and Type | Interface and Description |
---|---|
static interface |
PurgeableStorage.PurgeAction |
static interface |
PurgeableStorage.PurgeContext |
static interface |
PurgeableStorage.PurgeResult
Statistics
|
Modifier and Type | Method and Description |
---|---|
PurgeableStorage.PurgeResult |
purge(PurgeableStorage.PurgeContext ctx,
long _valueExpiryTime,
long _entryExpiryTime)
Removes all entries which have an expiry time before or equal to the
given time.
|
PurgeableStorage.PurgeResult purge(PurgeableStorage.PurgeContext ctx, long _valueExpiryTime, long _entryExpiryTime) throws Exception
The storage implementation may choose to implement only one or no expiry variant by time.
ctx
- Provides a multi-threaded context. Thread resources for purge
operations may be more limited or may have lower priority._valueExpiryTime
- request to remove entries with lower value of
StorageEntry.getValueExpiryTime()
_entryExpiryTime
- request to remove entries with with lower value of
StorageEntry.getEntryExpiryTime()
Exception
cache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.