public class StaleReadDetectorImpl extends Object implements StaleReadDetector
StaleReadDetector
ALWAYS_FRESH
Constructor and Description |
---|
StaleReadDetectorImpl(RepairingHandler repairingHandler,
MinimalPartitionService partitionService) |
Modifier and Type | Method and Description |
---|---|
MetaDataContainer |
getMetaDataContainer(Object key) |
boolean |
isStaleRead(Object key,
NearCacheRecord record) |
public StaleReadDetectorImpl(RepairingHandler repairingHandler, MinimalPartitionService partitionService)
public boolean isStaleRead(Object key, NearCacheRecord record)
isStaleRead
in interface StaleReadDetector
key
- the keyrecord
- the near-cache recordtrue
if reading with the supplied invalidation metadata is stale,
otherwise returns false
public MetaDataContainer getMetaDataContainer(Object key)
getMetaDataContainer
in interface StaleReadDetector
key
- supplied key to get valueMetaDataContainer
for this keyCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.