Package com.hazelcast.cache
Interface HazelcastCacheManager
- All Superinterfaces:
AutoCloseable,javax.cache.CacheManager,Closeable
public interface HazelcastCacheManager
extends javax.cache.CacheManager
Contract point of Hazelcast cache manager implementations (client + server)
based on
CacheManager.- See Also:
-
CacheManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringHazelcast'sCacheManagerprefix to be appended to the head of the cache name. -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroys the cache manager.getCacheNameWithPrefix(String name) Gets the cache name by adding the manager prefix.Gets the underlyingHazelcastInstanceimplementation.voidremoveCache(String cacheName, boolean destroy) Removes the associated cache with the given cache name.Methods inherited from interface javax.cache.CacheManager
close, createCache, destroyCache, enableManagement, enableStatistics, getCache, getCache, getCacheNames, getCachingProvider, getClassLoader, getProperties, getURI, isClosed, unwrap
-
Field Details
-
CACHE_MANAGER_PREFIX
Hazelcast'sCacheManagerprefix to be appended to the head of the cache name.- See Also:
-
-
Method Details
-
getCacheNameWithPrefix
Gets the cache name by adding the manager prefix.- Parameters:
name- pure cache name without prefix- Returns:
- the cache name with manager prefix
-
getHazelcastInstance
HazelcastInstance getHazelcastInstance()Gets the underlyingHazelcastInstanceimplementation.- Returns:
- the underlying
HazelcastInstanceimplementation
-
removeCache
Removes the associated cache with the given cache name.- Parameters:
cacheName- pure cache name without prefixdestroy- flag to specify whether the removed cache will be destroyed
-
destroy
void destroy()Destroys the cache manager.
-