|
||||||||||
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.InMemoryCacheManager
@ThreadSafe public final class InMemoryCacheManager
The cache manager implementation to store caches in-memory.
Constructor Summary | |
---|---|
InMemoryCacheManager() 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. |
UnawareCache<?,?> |
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 InMemoryCacheManager()
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 UnawareCache<?,?> getPropertiesCache(String cacheName)
getPropertiesCache
in interface
CacheManager
cacheName
- the name of the cache to fetch.
public Cache<?,?> getConfigurationsCache(String cacheName)
getConfigurationsCache
in interface
CacheManager
cacheName
- the name of the cache to fetch.
public Set<String> getCacheNames()
getCacheNames
in interface
CacheManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |