public interface StaleReadDetector
StaleReadDetector and next near-cache-get will return null to force fresh
data fetching from underlying imap/icache.AbstractNearCacheRecordStore.get(K)| Modifier and Type | Field and Description |
|---|---|
static StaleReadDetector |
ALWAYS_FRESH
This instance will be used when near-cache invalidations are disabled.
|
| Modifier and Type | Method and Description |
|---|---|
MetaDataContainer |
getMetaDataContainer(Object key) |
boolean |
isStaleRead(Object key,
NearCacheRecord record) |
static final StaleReadDetector ALWAYS_FRESH
boolean isStaleRead(Object key, NearCacheRecord record)
key - the keyrecord - the near-cache recordtrue if reading with the supplied invalidation metadata is stale,
otherwise returns falseMetaDataContainer getMetaDataContainer(Object key)
key - supplied key to get valueMetaDataContainer for this keyCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.