com.hazelcast.map.impl
Class NearCacheRecord
java.lang.Object
com.hazelcast.map.impl.NearCacheRecord
public class NearCacheRecord
- extends Object
Entry holder to be used in Client and Node side Near cache
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NearCacheRecord
public NearCacheRecord(Object key,
Object value)
getKey
public Object getKey()
getValue
public Object getValue()
access
public void access()
getCost
public long getCost()
isExpired
public boolean isExpired(long maxIdleMillis,
long timeToLiveMillis)
getComparator
public static Comparator<NearCacheRecord> getComparator(EvictionPolicy evictionPolicy)
- Parameters:
evictionPolicy
- EvictionPolicy
- Returns:
- appropriate comparator function depending on the eviction policy
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.