|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.spi.config.cache.guava.GuavaCacheManager
public final class GuavaCacheManager
The cache manager implementation using com.google.common.cache.Cache
provided by guava-libraries.
Field Summary | |
---|---|
static String |
INFINISPAN_DELEGATING_CACHE_CACHE_NAME The name of the key to retrieve the cache names. |
Constructor Summary | |
---|---|
GuavaCacheManager() Default constructor. |
Method Summary | |
---|---|
void |
clear(String cacheName) Clears the cache with the given name. |
void |
clearAll() Removes all keys from all caches. |
void |
discard(String cacheName) Clears and stops the cache. |
Set<String> |
getCacheNames() Returns the set of cache names. |
de.smartics.properties.spi.config.cache.Cache |
getConfigurationsCache(String cacheName) Returns the cache with the given name. |
de.smartics.properties.spi.config.cache.Cache |
getInfinispanDelegatingCache() Returns the infinispan delegating cache. |
void |
stop(String cacheName) Stops the cache with the given name. |
void |
stopAll() Stops all caches, rendering the manager in a stopped state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INFINISPAN_DELEGATING_CACHE_CACHE_NAME
"INFINISPAN_DELEGATING_CACHE_CACHE"
Constructor Detail |
---|
public GuavaCacheManager()
Method Detail |
---|
public void clearAll()
public void clear(String cacheName)
cacheName
- the name of the cache to be cleared.
public void discard(String cacheName)
cacheName
- the name of the cache to be cleared and stopped.
public void stopAll()
public void stop(String cacheName)
cacheName
- the name of the cache to stop.
public de.smartics.properties.spi.config.cache.Cache getConfigurationsCache(String cacheName)
cacheName
- the name of the cache to fetch.
public de.smartics.properties.spi.config.cache.Cache getInfinispanDelegatingCache()
public Set<String> getCacheNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |