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)
Creates a new
NearCache with given configurations
or returns existing one. |
<K,V> NearCache<K,V> |
getOrCreateNearCache(String name,
NearCacheConfig nearCacheConfig,
DataStructureAdapter dataStructureAdapter)
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)
NearCache
with given configurations
or returns existing one.K
- the key type of the NearCache
V
- the value type of the NearCache
name
- the name of the NearCache
to be created or existing onenearCacheConfig
- the NearCacheConfig
of the NearCache
to be createdNearCache
instance associated with given name
<K,V> NearCache<K,V> getOrCreateNearCache(String name, NearCacheConfig nearCacheConfig, DataStructureAdapter dataStructureAdapter)
NearCache
with given configurations or returns existing one.
Triggers the pre-loading of the created NearCache
via the supplied DataStructureAdapter
.K
- the key type of the NearCache
V
- the value type of the NearCache
name
- the name of the NearCache
to be created or existing onenearCacheConfig
- the NearCacheConfig
of the NearCache
to be createddataStructureAdapter
- the DataStructureAdapter
of the NearCache
to be createdNearCache
instance associated with given name
Collection<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 © 2021 Hazelcast, Inc.. All Rights Reserved.