|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.bankframe.services.cache.GenericCache
com.bankframe.services.cache.threadcleaned.ThreadCleanedCache
This ThreadCleanedCache implementation uses a deamon thread
to manage calls to its cleanup() implementation.
This implementation does not call cleanup()
on invocation of the following methods
get(Object)
put(Object,Object)
putAll(Map)
remove(Set)
.
It expects that all cleanup() calls will be
invoked from the CacheFactory.CacheCleanUpThread
instance.
If this cache is used the
ThreadCleanedCacheStartupClass must be
invoked on server starup.
Please refer to javadoc for ThreadCleanedCacheStartupClass
for further details.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
java.util.Map.Entry |
| Constructor Summary | |
ThreadCleanedCache()
|
|
| Method Summary | |
java.lang.Object |
get(java.lang.Object key)
This method retrieves the specified object, if it is not in the cacheit will be fetched from the data store. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
This method updates the specified object to the data-store. |
void |
putAll(java.util.Map values)
This method places the specified values in the cache and the data-store. |
java.lang.Object |
remove(java.lang.Object key)
This method removes the specified object from the cache and the data store. |
void |
remove(java.util.Set keySet)
This method removes the specified keys from the cache and the data store. |
| Methods inherited from class com.bankframe.services.cache.GenericCache |
addCacheListener, cleanup, clear, containsKey, containsValue, enableCaching, entrySet, equals, getCachePolicy, getFromPersistentMap, getName, getPersistentMap, hashCode, isEmpty, keySet, removeAll, removeCacheListener, setCachePolicy, setName, setPersistentMap, size, toString, values |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ThreadCleanedCache()
| Method Detail |
public java.lang.Object get(java.lang.Object key)
GenericCache
get in interface java.util.Mapget in class GenericCachekey - Unique key identifying the object
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
GenericCache
put in interface java.util.Mapput in class GenericCachekey - Unique key identifying the objectvalue - The objectpublic void putAll(java.util.Map values)
GenericCache
putAll in interface java.util.MapputAll in class GenericCachepublic java.lang.Object remove(java.lang.Object key)
GenericCache
remove in interface java.util.Mapremove in class GenericCachekey - Unique key identifying the object to removepublic void remove(java.util.Set keySet)
GenericCache
remove in interface Cacheremove in class GenericCachekeySet - the set of keys to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||