public interface CacheManager
| Modifier and Type | Method and Description |
|---|---|
<K,V> CacheBuilder<K,V> |
createCacheBuilder(String cacheName)
Creates a new
CacheBuilder for the named cache to be managed by this cache manager. |
<K,V> Cache<K,V> |
getCache(String cacheName)
Looks up a named cache.
|
boolean |
removeCache(String cacheName)
Remove a cache from the CacheManager.
|
void |
shutdown()
Shuts down the CacheManager.
|
<K,V> CacheBuilder<K,V> createCacheBuilder(String cacheName)
CacheBuilder for the named cache to be managed by this cache manager.
The returned CacheBuilder is associated with this CacheManager.
The Cache will be created, added to the caches controlled by this CacheManager and started when
CacheBuilder.build() is called.cacheName - the name of the cache to build. A cache name must consist of at least one non-whitespace character.<K,V> Cache<K,V> getCache(String cacheName)
cacheName - the name of the cache to look forboolean removeCache(String cacheName)
cacheName - the cache namevoid shutdown()
Copyright © 2015 Project Grizzly. All Rights Reserved.