com.hazelcast.map.impl
Class NearCacheRecord

java.lang.Object
  extended by com.hazelcast.map.impl.NearCacheRecord

public class NearCacheRecord
extends Object

Entry holder to be used in Client and Node side Near cache


Constructor Summary
NearCacheRecord(Object key, Object value)
           
 
Method Summary
 void access()
           
static Comparator<NearCacheRecord> getComparator(EvictionPolicy evictionPolicy)
           
 long getCost()
           
 Object getKey()
           
 Object getValue()
           
 boolean isExpired(long maxIdleMillis, long timeToLiveMillis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NearCacheRecord

public NearCacheRecord(Object key,
                       Object value)
Method Detail

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.