com.hazelcast.map.impl
public class NearCache extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NEAR_CACHE_EXECUTOR_NAME |
static Object |
NULL_OBJECT
Used when caching nonexistent values.
|
Constructor and Description |
---|
NearCache(String mapName,
NodeEngine nodeEngine) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Object |
get(Data key) |
SizeEstimator |
getNearCacheSizeEstimator() |
NearCacheStatsImpl |
getNearCacheStats() |
Map<Data,NearCacheRecord> |
getReadonlyMap() |
void |
invalidate(Collection<Data> keys) |
void |
invalidate(Data key) |
Object |
put(Data key,
Data data) |
void |
setNearCacheSizeEstimator(SizeEstimator nearCacheSizeEstimator) |
int |
size() |
public static final Object NULL_OBJECT
public static final String NEAR_CACHE_EXECUTOR_NAME
public NearCache(String mapName, NodeEngine nodeEngine)
mapName
- name of map which owns near cache.nodeEngine
- node engine.public NearCacheStatsImpl getNearCacheStats()
public void invalidate(Data key)
public void invalidate(Collection<Data> keys)
public int size()
public void clear()
public Map<Data,NearCacheRecord> getReadonlyMap()
public SizeEstimator getNearCacheSizeEstimator()
public void setNearCacheSizeEstimator(SizeEstimator nearCacheSizeEstimator)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.