public interface NearCacheManager
NearCacheManager is the contract point to manage all existing
NearCache instances.| Modifier and Type | Method and Description |
|---|---|
void |
clearAllNearCaches()
Clears all defined
NearCache instances. |
boolean |
clearNearCache(String name)
Clears
NearCache instance associated with given name
but not removes it. |
void |
destroyAllNearCaches()
Destroys all defined
NearCache instances. |
boolean |
destroyNearCache(String name)
Destroys
NearCache instance associated with given name
and also removes it. |
<K,V> NearCache<K,V> |
getNearCache(String name)
Gets the
NearCache instance
associated with given name. |
<K,V> NearCache<K,V> |
getOrCreateNearCache(String name,
NearCacheConfig nearCacheConfig,
NearCacheContext nearCacheContext)
Creates a new
NearCache with given configurations
or returns existing one. |
Collection<NearCache> |
listAllNearCaches()
Lists all existing
NearCache instances. |
<K,V> NearCache<K,V> getNearCache(String name)
NearCache instance
associated with given name.<K,V> NearCache<K,V> getOrCreateNearCache(String name, NearCacheConfig nearCacheConfig, NearCacheContext nearCacheContext)
NearCache with given configurations
or returns existing one.K - the key type of the NearCacheV - the value type of the NearCachename - the name of the NearCache
to be created or existing onenearCacheConfig - the NearCacheConfig of the
NearCache to be creatednearCacheContext - the NearCacheContext of the
NearCache to be createdNearCache instance
associated with given nameCollection<NearCache> listAllNearCaches()
NearCache instances.NearCache instancesboolean clearNearCache(String name)
NearCache instance associated with given name
but not removes it.void clearAllNearCaches()
NearCache instances.boolean destroyNearCache(String name)
NearCache instance associated with given name
and also removes it.void destroyAllNearCaches()
NearCache instances.Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.