Package com.hazelcast.cache
Interface HazelcastCacheManager
-
- All Superinterfaces:
java.lang.AutoCloseable
,javax.cache.CacheManager
,java.io.Closeable
public interface HazelcastCacheManager extends javax.cache.CacheManager
Contract point of Hazelcast cache manager implementations (client + server) based onCacheManager
.- See Also:
CacheManager
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CACHE_MANAGER_PREFIX
Hazelcast'sCacheManager
prefix to be appended to the head of the cache name.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
destroy()
Destroys the cache manager.java.lang.String
getCacheNameWithPrefix(java.lang.String name)
Gets the cache name by adding the manager prefix.HazelcastInstance
getHazelcastInstance()
Gets the underlyingHazelcastInstance
implementation.void
removeCache(java.lang.String cacheName, boolean destroy)
Removes the associated cache with the given cache name.
-
-
-
Field Detail
-
CACHE_MANAGER_PREFIX
static final java.lang.String CACHE_MANAGER_PREFIX
Hazelcast'sCacheManager
prefix to be appended to the head of the cache name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCacheNameWithPrefix
java.lang.String getCacheNameWithPrefix(java.lang.String name)
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 underlyingHazelcastInstance
implementation.- Returns:
- the underlying
HazelcastInstance
implementation
-
removeCache
void removeCache(java.lang.String cacheName, boolean destroy)
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.
-
-