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:
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
addCacheConfigIfAbsentToLocal(CacheConfig<K,V> cacheConfig)
           
protected
<K,V> ICache<K,V>
createCacheProxy(CacheConfig<K,V> cacheConfig)
           
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>
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

addCacheConfigIfAbsentToLocal

protected <K,V> void addCacheConfigIfAbsentToLocal(CacheConfig<K,V> cacheConfig)
Specified by:
addCacheConfigIfAbsentToLocal 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.

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

getCacheConfigFromPartition

protected <K,V> CacheConfig<K,V> getCacheConfigFromPartition(String cacheName,
                                                             String simpleCacheName)
Specified by:
getCacheConfigFromPartition 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.