public class HazelcastServerCacheManager extends AbstractHazelcastCacheManager
CacheManager for server implementation. This
subclass of AbstractHazelcastCacheManager is managed by
HazelcastServerCachingProvider.
As it lives on a node JVM, it has reference to CacheService and
NodeEngine where this manager makes calls.
When JCache server implementation is configured, an instance of this class
will be returned when CachingProvider.getCacheManager()
is called.
caches, cachingProvider, hazelcastInstance, isDefaultClassLoader, isDefaultURI, properties, uriCACHE_MANAGER_PREFIX| Constructor and Description |
|---|
HazelcastServerCacheManager(HazelcastServerCachingProvider 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 cacheNameWithPrefix,
String cacheName) |
ICacheService |
getCacheService() |
protected void |
onShuttingDown() |
protected void |
postClose() |
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, postDestroy, removeCache, toStringpublic HazelcastServerCacheManager(HazelcastServerCachingProvider 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 AbstractHazelcastCacheManagerprotected <K,V> CacheConfig<K,V> findCacheConfig(String cacheName, String simpleCacheName)
findCacheConfig in class AbstractHazelcastCacheManagerprotected <K,V> void createCacheConfig(String cacheName, CacheConfig<K,V> config)
createCacheConfig in class AbstractHazelcastCacheManagerprotected <K,V> ICacheInternal<K,V> createCacheProxy(CacheConfig<K,V> cacheConfig)
createCacheProxy in class AbstractHazelcastCacheManagerprotected <K,V> CacheConfig<K,V> getCacheConfig(String cacheNameWithPrefix, String cacheName)
getCacheConfig in class AbstractHazelcastCacheManagerprotected void removeCacheConfigFromLocal(String cacheNameWithPrefix)
AbstractHazelcastCacheManagerThe default implementation does not require it, but client implementation overrides this to track a local copy of the config.
removeCacheConfigFromLocal in class AbstractHazelcastCacheManagercacheNameWithPrefix - the cache nameprotected <K,V> void validateCacheConfig(CacheConfig<K,V> cacheConfig)
validateCacheConfig in class AbstractHazelcastCacheManagerpublic <T> T unwrap(Class<T> clazz)
protected void postClose()
postClose in class AbstractHazelcastCacheManagerprotected void onShuttingDown()
onShuttingDown in class AbstractHazelcastCacheManagerpublic ICacheService getCacheService()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.