|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheManager
Interface defining a manager of 3rd level (ie. application level) caches.
This allow us to later define implementations that are encapsulation of
market existing Cache provider (EHCache, JBossTree, SwarmCache, ...).
Our manager only needs to have basic methods for startup, retrieval and
shutdown of caches.
Method Summary | |
---|---|
void |
clearCaches()
Clear (ie. flush) all managed caches. |
void |
createCaches()
Create all managed caches. |
Cache |
getCache(java.lang.String key)
Retrieve a Cache using its key |
Method Detail |
---|
void clearCaches() throws CacheException
CacheException
- if at least one of the caches cannot be clearedvoid createCaches() throws CacheException
CacheException
- if at least one of the caches cannot be createdCache getCache(java.lang.String key)
key
- The key within is store the cache into the manager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |