|
||||||||||
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.AmnesiaCacheManager
@ThreadSafe public class AmnesiaCacheManager
The cache manager implementation for a fake cache, that does nothing.
Constructor Summary | |
---|---|
AmnesiaCacheManager() 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. |
Cache<?,?> |
getConfigurationsCache(String cacheName) Returns the cache with the given name. |
Cache<?,?> |
getPropertiesCache(String cacheName) Returns the cache with the given name. |
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 |
Constructor Detail |
---|
public AmnesiaCacheManager()
Method Detail |
---|
public void clearAll()
clearAll
in interface
CacheManager
public void clear(String cacheName)
clear
in interface
CacheManager
cacheName
- the name of the cache to be cleared.
public void discard(String cacheName)
discard
in interface
CacheManager
cacheName
- the name of the cache to be cleared and stopped.
public void stopAll()
stopAll
in interface
CacheManager
public void stop(String cacheName)
stop
in interface
CacheManager
cacheName
- the name of the cache to stop.
public final Cache<?,?> getPropertiesCache(String cacheName)
getPropertiesCache
in interface
CacheManager
cacheName
- the name of the cache to fetch.
public final Cache<?,?> getConfigurationsCache(String cacheName)
getConfigurationsCache
in interface
CacheManager
cacheName
- the name of the cache to fetch.
public final Set<String> getCacheNames()
getCacheNames
in interface
CacheManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |