public final class HazelcastClientCacheManager extends AbstractHazelcastCacheManager
CacheManager
implementation for client side.
Provides client side CacheManager functionality.
caches, cachingProvider, hazelcastInstance, isDefaultClassLoader, isDefaultURI, properties, uri
CACHE_MANAGER_PREFIX
Constructor and Description |
---|
HazelcastClientCacheManager(HazelcastClientCachingProvider cachingProvider,
HazelcastInstance hazelcastInstance,
URI uri,
ClassLoader classLoader,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
protected <K,V> void |
addCacheConfigIfAbsent(CacheConfig<K,V> cacheConfig) |
protected <K,V> void |
createCacheConfig(String cacheName,
CacheConfig<K,V> config) |
protected <K,V> ICacheInternal<K,V> |
createCacheProxy(CacheConfig<K,V> cacheConfig) |
void |
enableManagement(String cacheName,
boolean enabled) |
void |
enableStatistics(String cacheName,
boolean enabled) |
protected <K,V> CacheConfig<K,V> |
findCacheConfig(String cacheName,
String simpleCacheName) |
protected <K,V> CacheConfig<K,V> |
getCacheConfig(String cacheName,
String simpleCacheName) |
NearCacheManager |
getNearCacheManager()
Gets the related
NearCacheManager with the underlying client instance. |
protected void |
onShuttingDown() |
protected void |
postClose() |
protected void |
postDestroy() |
protected void |
removeCacheConfigFromLocal(String cacheNameWithPrefix)
Removes the local copy of the cache configuration if one exists.
|
<T> T |
unwrap(Class<T> clazz) |
protected <K,V> void |
validateCacheConfig(CacheConfig<K,V> cacheConfig) |
close, createCache, createCacheConfig, destroy, destroyCache, ensureOpen, getCache, getCache, getCacheNames, getCacheNameWithPrefix, getCachingProvider, getClassLoader, getHazelcastInstance, getOrCreateCache, getProperties, getURI, isClosed, removeCache, toString
public HazelcastClientCacheManager(HazelcastClientCachingProvider cachingProvider, HazelcastInstance hazelcastInstance, URI uri, ClassLoader classLoader, Properties properties)
public void enableManagement(String cacheName, boolean enabled)
public void enableStatistics(String cacheName, boolean enabled)
protected <K,V> void addCacheConfigIfAbsent(CacheConfig<K,V> cacheConfig)
addCacheConfigIfAbsent
in class AbstractHazelcastCacheManager
protected void removeCacheConfigFromLocal(String cacheNameWithPrefix)
AbstractHazelcastCacheManager
The default implementation does not require it, but client implementation overrides this to track a local copy of the config.
removeCacheConfigFromLocal
in class AbstractHazelcastCacheManager
cacheNameWithPrefix
- the cache nameprotected <K,V> CacheConfig<K,V> getCacheConfig(String cacheName, String simpleCacheName)
getCacheConfig
in class AbstractHazelcastCacheManager
protected <K,V> ICacheInternal<K,V> createCacheProxy(CacheConfig<K,V> cacheConfig)
createCacheProxy
in class AbstractHazelcastCacheManager
protected <K,V> CacheConfig<K,V> findCacheConfig(String cacheName, String simpleCacheName)
findCacheConfig
in class AbstractHazelcastCacheManager
protected <K,V> void createCacheConfig(String cacheName, CacheConfig<K,V> config)
createCacheConfig
in class AbstractHazelcastCacheManager
public <T> T unwrap(Class<T> clazz)
protected void postClose()
postClose
in class AbstractHazelcastCacheManager
protected void postDestroy()
postDestroy
in class AbstractHazelcastCacheManager
protected <K,V> void validateCacheConfig(CacheConfig<K,V> cacheConfig)
validateCacheConfig
in class AbstractHazelcastCacheManager
protected void onShuttingDown()
onShuttingDown
in class AbstractHazelcastCacheManager
public NearCacheManager getNearCacheManager()
NearCacheManager
with the underlying client instance.NearCacheManager
with the underlying client instanceCopyright © 2021 Hazelcast, Inc.. All Rights Reserved.