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 StaleReadDetectorkey - the keyrecord - the Near Cache recordtrue if reading with the supplied invalidation metadata is stale,
otherwise returns falsepublic int getPartitionId(Object key)
getPartitionId in interface StaleReadDetectorpublic MetaDataContainer getMetaDataContainer(int partitionId)
getMetaDataContainer in interface StaleReadDetectorpartitionId - supplied partition ID to get valueMetaDataContainer for this keyCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.