|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheManager
Interface to use caches. Two different kinds of caches have to be supported. One implementing UnawareCache
and one implementing Cache
. The reason is that we do not need to support some Methods for a properties cache, so that here the a UnawreCache
implementation is sufficient. But for configurations we also need the additional method supported by Cache
. Its totally legal to use the same Cache implementation for both use-cases.
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 configurations cache with the given name. |
UnawareCache<?,?> |
getPropertiesCache(String cacheName) Returns the properties 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. |
Method Detail |
---|
void clearAll()
void clear(String cacheName)
cacheName
- the name of the cache to be cleared.
void discard(String cacheName)
cacheName
- the name of the cache to be cleared and stopped.
void stopAll()
void stop(String cacheName)
cacheName
- the name of the cache to stop.
UnawareCache<?,?> getPropertiesCache(String cacheName)
cacheName
- the name of the cache to fetch.
Cache<?,?> getConfigurationsCache(String cacheName)
cacheName
- the name of the cache to fetch.
Set<String> getCacheNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |