com.hazelcast.map.impl
Class NearCache

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

public class NearCache
extends Object

NearCache.


Nested Class Summary
 class NearCache.CacheRecord
          CacheRecord.
 
Field Summary
static String NEAR_CACHE_EXECUTOR_NAME
           
static Object NULL_OBJECT
          Used when caching nonexistent values.
 
Constructor Summary
NearCache(String mapName, NodeEngine nodeEngine)
           
 
Method Summary
 void clear()
           
 Object get(Data key)
           
 SizeEstimator getNearCacheSizeEstimator()
           
 NearCacheStatsImpl getNearCacheStats()
           
 Map<Data,NearCache.CacheRecord> getReadonlyMap()
           
 void invalidate(Collection<Data> keys)
           
 void invalidate(Data key)
           
 Object put(Data key, Data data)
           
 void setNearCacheSizeEstimator(SizeEstimator nearCacheSizeEstimator)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_OBJECT

public static final Object NULL_OBJECT
Used when caching nonexistent values.


NEAR_CACHE_EXECUTOR_NAME

public static final String NEAR_CACHE_EXECUTOR_NAME
See Also:
Constant Field Values
Constructor Detail

NearCache

public NearCache(String mapName,
                 NodeEngine nodeEngine)
Parameters:
mapName - name of map which owns near cache.
nodeEngine - node engine.
Method Detail

put

public Object put(Data key,
                  Data data)

getNearCacheStats

public NearCacheStatsImpl getNearCacheStats()

get

public Object get(Data key)

invalidate

public void invalidate(Data key)

invalidate

public void invalidate(Collection<Data> keys)

size

public int size()

clear

public void clear()

getReadonlyMap

public Map<Data,NearCache.CacheRecord> getReadonlyMap()

getNearCacheSizeEstimator

public SizeEstimator getNearCacheSizeEstimator()

setNearCacheSizeEstimator

public void setNearCacheSizeEstimator(SizeEstimator nearCacheSizeEstimator)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.