public interface StoreAdapter<R>
| Modifier and Type | Method and Description |
|---|---|
boolean |
evictIfExpired(R record,
long now,
boolean backup)
Checks whether the record is expired and evicts it if so.
|
boolean |
isExpirable() |
boolean |
isTtlOrMaxIdleDefined(R record)
Checks whether ttl or maxIdle are set on the record.
|
boolean evictIfExpired(R record, long now, boolean backup)
record - the record to checknow - the current timebackup - true if a backup partition, otherwise false.true is the record is expired and evicted, otherwise false.boolean isTtlOrMaxIdleDefined(R record)
record - the record to be checkedtrue if ttl or maxIdle are defined on the record, otherwise false.boolean isExpirable()
true if the store has at least one candidate entry
for expiration, otherwise false.Copyright © 2019 Hazelcast, Inc.. All rights reserved.