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)
NearCache
key
.public String getName()
NearCache
this
NearCache
instance.public Object get(K key)
NearCache
key
.public boolean remove(K key)
NearCache
key
.public NearCacheStatsImpl getNearCacheStats()
NearCache
NearCacheStats
instance to monitor this store.getNearCacheStats
in interface NearCache<K,Object>
NearCacheStats
instance to monitor this storepublic Object selectToSave(Object... candidates)
NearCache
candidates
.selectToSave
in interface NearCache<K,Object>
candidates
- the candidates from which the best candidate object will be selected.candidates
.public int size()
NearCache
public void clear()
NearCache
public void destroy()
NearCache
public boolean isInvalidateOnChange()
isInvalidateOnChange
in interface NearCache<K,Object>
public InMemoryFormat getInMemoryFormat()
NearCache
InMemoryFormat
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.