com.hazelcast.client.cache.impl
Class HazelcastClientCacheManager

java.lang.Object
  extended by com.hazelcast.cache.impl.AbstractHazelcastCacheManager
      extended by 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


Field Summary
 
Fields inherited from class com.hazelcast.cache.impl.AbstractHazelcastCacheManager
cacheNamePrefix, caches, cachingProvider, classLoaderReference, hazelcastInstance, isDefaultClassLoader, isDefaultURI, properties, uri
 
Constructor Summary
HazelcastClientCacheManager(HazelcastClientCachingProvider cachingProvider, HazelcastInstance hazelcastInstance, URI uri, ClassLoader classLoader, Properties properties)
           
 
Method Summary
protected
<K,V> void
addCacheConfigIfAbsent(CacheConfig<K,V> cacheConfig)
           
protected
<K,V> ICache<K,V>
createCacheProxy(CacheConfig<K,V> cacheConfig)
           
protected
<K,V> CacheConfig<K,V>
createConfig(String cacheName, CacheConfig<K,V> config, boolean createAlsoOnOthers, boolean syncCreate)
           
protected
<K,V> CacheConfig<K,V>
createConfigOnPartition(CacheConfig<K,V> cacheConfig)
           
 void enableManagement(String cacheName, boolean enabled)
           
 void enableStatistics(String cacheName, boolean enabled)
           
protected
<K,V> CacheConfig<K,V>
findConfig(String cacheName, String simpleCacheName, boolean createAlsoOnOthers, boolean syncCreate)
           
protected
<K,V> CacheConfig<K,V>
getCacheConfigFromPartition(String cacheName, String simpleCacheName)
           
protected
<K,V> CacheConfig<K,V>
getCacheConfigLocal(String cacheName)
           
protected  void postClose()
           
protected  void removeCacheConfigFromLocal(String cacheName)
          Removes the local copy of the cache configuration if one exists.
<T> T
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HazelcastClientCacheManager

public HazelcastClientCacheManager(HazelcastClientCachingProvider cachingProvider,
                                   HazelcastInstance hazelcastInstance,
                                   URI uri,
                                   ClassLoader classLoader,
                                   Properties properties)
Method Detail

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.