com.hazelcast.client.cache.impl
Class HazelcastClientCacheManager
java.lang.Object
com.hazelcast.cache.impl.AbstractHazelcastCacheManager
com.hazelcast.client.cache.impl.HazelcastClientCacheManager
- All Implemented Interfaces:
- HazelcastCacheManager, Closeable, javax.cache.CacheManager
public final class HazelcastClientCacheManager
- extends AbstractHazelcastCacheManager
CacheManager implementation for client side
Provides client side cacheManager functionality
Method Summary |
protected
|
addCacheConfigIfAbsent(CacheConfig<K,V> cacheConfig)
|
protected
|
createCacheProxy(CacheConfig<K,V> cacheConfig)
|
protected
|
createConfig(String cacheName,
CacheConfig<K,V> config,
boolean createAlsoOnOthers,
boolean syncCreate)
|
protected
|
createConfigOnPartition(CacheConfig<K,V> cacheConfig)
|
void |
enableManagement(String cacheName,
boolean enabled)
|
void |
enableStatistics(String cacheName,
boolean enabled)
|
protected
|
findConfig(String cacheName,
String simpleCacheName,
boolean createAlsoOnOthers,
boolean syncCreate)
|
protected
|
getCacheConfigFromPartition(String cacheName,
String simpleCacheName)
|
protected
|
getCacheConfigLocal(String cacheName)
|
protected void |
postClose()
|
protected void |
removeCacheConfigFromLocal(String cacheName)
Removes the local copy of the cache configuration if one exists. |
|
unwrap(Class<T> clazz)
|
Methods inherited from class com.hazelcast.cache.impl.AbstractHazelcastCacheManager |
cacheNamePrefix, checkIfManagerNotClosed, close, createCache, createCacheConfig, destroy, destroyCache, getCache, getCache, getCacheNames, getCacheNameWithPrefix, getCacheUnchecked, getCachingProvider, getClassLoader, getProperties, getURI, isClosed, registerListeners, toString |
HazelcastClientCacheManager
public HazelcastClientCacheManager(HazelcastClientCachingProvider cachingProvider,
HazelcastInstance hazelcastInstance,
URI uri,
ClassLoader classLoader,
Properties properties)
enableManagement
public void enableManagement(String cacheName,
boolean enabled)
enableStatistics
public void enableStatistics(String cacheName,
boolean enabled)
getCacheConfigLocal
protected <K,V> CacheConfig<K,V> getCacheConfigLocal(String cacheName)
- Specified by:
getCacheConfigLocal
in class AbstractHazelcastCacheManager
addCacheConfigIfAbsent
protected <K,V> void addCacheConfigIfAbsent(CacheConfig<K,V> cacheConfig)
- Specified by:
addCacheConfigIfAbsent
in class AbstractHazelcastCacheManager
removeCacheConfigFromLocal
protected void removeCacheConfigFromLocal(String cacheName)
- Description copied from class:
AbstractHazelcastCacheManager
- Removes the local copy of the cache configuration if one exists.
Default implementation does not require it. But client implementation overrides this to track a local copy
of the config.
- Overrides:
removeCacheConfigFromLocal
in class AbstractHazelcastCacheManager
- Parameters:
cacheName
- cache name.
getCacheConfigFromPartition
protected <K,V> CacheConfig<K,V> getCacheConfigFromPartition(String cacheName,
String simpleCacheName)
- Specified by:
getCacheConfigFromPartition
in class AbstractHazelcastCacheManager
createConfigOnPartition
protected <K,V> CacheConfig<K,V> createConfigOnPartition(CacheConfig<K,V> cacheConfig)
- Specified by:
createConfigOnPartition
in class AbstractHazelcastCacheManager
createCacheProxy
protected <K,V> ICache<K,V> createCacheProxy(CacheConfig<K,V> cacheConfig)
- Specified by:
createCacheProxy
in class AbstractHazelcastCacheManager
findConfig
protected <K,V> CacheConfig<K,V> findConfig(String cacheName,
String simpleCacheName,
boolean createAlsoOnOthers,
boolean syncCreate)
- Specified by:
findConfig
in class AbstractHazelcastCacheManager
createConfig
protected <K,V> CacheConfig<K,V> createConfig(String cacheName,
CacheConfig<K,V> config,
boolean createAlsoOnOthers,
boolean syncCreate)
- Specified by:
createConfig
in class AbstractHazelcastCacheManager
unwrap
public <T> T unwrap(Class<T> clazz)
postClose
protected void postClose()
- Specified by:
postClose
in class AbstractHazelcastCacheManager
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.