|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rhi.architecture.cache.simple.SimpleCacheManager
This is simple cache manager that handles the cacheable objects by storing and retriving from HashMap java class. Other complex cache managers can store in different java classes or third party caching mechanism like JCS etc.
Field Summary | |
protected java.util.HashMap |
cache
This stores all the cacheable objects. |
Constructor Summary | |
SimpleCacheManager(java.lang.String name)
Constructor |
Method Summary | |
java.lang.Object |
get(java.lang.Object pkKey)
This method retrieves the cacheable object from cache using the key and returns the it. |
Logger |
log()
|
void |
put(java.lang.Object key,
java.lang.Object cachedObject)
This method adds the cacheable object to the cache with its key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.HashMap cache
Constructor Detail |
public SimpleCacheManager(java.lang.String name)
name
- Method Detail |
public Logger log()
public java.lang.Object get(java.lang.Object pkKey)
get
in interface CacheManager
pkKey
-
public void put(java.lang.Object key, java.lang.Object cachedObject) throws DuplicateObjectException
put
in interface CacheManager
key
- cachedObject
-
DuplicateObjectException
- It throws
DuplicateObjectException which is sub-class of CacheException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |