public class StaleReadDetectorImpl extends Object implements StaleReadDetector
StaleReadDetector
.ALWAYS_FRESH
Modifier and Type | Method and Description |
---|---|
MetaDataContainer |
getMetaDataContainer(int partitionId) |
int |
getPartitionId(Object key) |
boolean |
isStaleRead(Object key,
NearCacheRecord record) |
String |
toString() |
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 int getPartitionId(Object key)
getPartitionId
in interface StaleReadDetector
public MetaDataContainer getMetaDataContainer(int partitionId)
getMetaDataContainer
in interface StaleReadDetector
partitionId
- supplied partition ID to get valueMetaDataContainer
for this keyCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.