DEFAULT_EXPIRATION_TASK_DELAY_IN_SECONDS, DEFAULT_EXPIRATION_TASK_INITIAL_DELAY_IN_SECONDS, NULL_OBJECT| Constructor and Description |
|---|
ClientHeapNearCache(String mapName,
ClientContext context,
NearCacheConfig nearCacheConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all stored values.
|
void |
destroy()
Clears the record store and destroys it.
|
Object |
get(K key)
Gets the value associated with the given
key. |
InMemoryFormat |
getInMemoryFormat()
Gets the
InMemoryFormat of the storage for internal records. |
String |
getName()
Gets the name of the
this NearCache instance. |
NearCacheStatsImpl |
getNearCacheStats()
Get the
NearCacheStats instance to monitor this store. |
boolean |
isInvalidateOnChange() |
void |
put(K key,
Object object)
Puts (associates) a value with the given
key. |
boolean |
remove(K key)
Removes the value associated with the given
key. |
Object |
selectToSave(Object... candidates)
Selects the best candidate object to store from the given
candidates. |
int |
size()
Gets the count of stored records.
|
public ClientHeapNearCache(String mapName, ClientContext context, NearCacheConfig nearCacheConfig)
public void put(K key, Object object)
NearCachekey.public String getName()
NearCachethis NearCache instance.public Object get(K key)
NearCachekey.public boolean remove(K key)
NearCachekey.public NearCacheStatsImpl getNearCacheStats()
NearCacheNearCacheStats instance to monitor this store.getNearCacheStats in interface NearCache<K,Object>NearCacheStats instance to monitor this storepublic Object selectToSave(Object... candidates)
NearCachecandidates.selectToSave in interface NearCache<K,Object>candidates - the candidates from which the best candidate object will be selected.candidates.public int size()
NearCachepublic void clear()
NearCachepublic void destroy()
NearCachepublic boolean isInvalidateOnChange()
isInvalidateOnChange in interface NearCache<K,Object>public InMemoryFormat getInMemoryFormat()
NearCacheInMemoryFormat of the storage for internal records.getInMemoryFormat in interface NearCache<K,Object>InMemoryFormat of the storage for internal recordsCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.