|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oroad.stxx.cache.CacheManagerImpl
The default implementation of CacheManager implemented as a singleton
| Field Summary |
| Fields inherited from interface com.oroad.stxx.cache.CacheManager |
DEFAULT_CACHE_CLASS |
| Method Summary | |
void |
addCache(Cache cache)
Adds a cache |
void |
clearCaches()
Clears all caches |
void |
destroy()
Stops the expiration and clears the cache |
static void |
enableExpiration(boolean val)
Enables or disable expiration |
Cache |
getCache(java.lang.String cacheName)
Gets the cache |
static CacheManager |
getInstance()
Gets a reference to the only instance of the class |
void |
removeCache(java.lang.String cacheName)
Removes a cache |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static CacheManager getInstance()
public static void enableExpiration(boolean val)
val - If true, enable expirationpublic void destroy()
destroy in interface CacheManagerpublic Cache getCache(java.lang.String cacheName)
getCache in interface CacheManagercacheName - The name of the cache to retrieve
public void addCache(Cache cache)
addCache in interface CacheManagercache - The cache to addpublic void removeCache(java.lang.String cacheName)
removeCache in interface CacheManagercacheName - The name of the cache to removepublic void clearCaches()
clearCaches in interface CacheManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||