|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.cache.GenericCache | +--de.iiit.cache.GenericInvalidationCache
A cache with a guaranteed maximum lifetime of each entry
Constructor Summary | |
GenericInvalidationCache()
Creates a new instance of GenericInvalidationCache |
|
GenericInvalidationCache(long invalidationTimeout)
Creates a new instance of GenericInvalidationCache |
Method Summary | |
void |
addElement(Object key,
Object value)
Add a new element to the cache. |
Object |
getElement(Object key)
Retrieves an cache-entry. |
Methods inherited from class de.iiit.cache.GenericCache |
clear, getKeys, removeElement, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GenericInvalidationCache()
public GenericInvalidationCache(long invalidationTimeout)
invalidationTimeout
- The maximum lifetime of the entriesMethod Detail |
public void addElement(Object key, Object value)
addElement
in class GenericCache
key
- The unique key of the cache entryvalue
- The unique key of the cache entrypublic Object getElement(Object key) throws CacheFaultException
getElement
in class GenericCache
key
- The unique key of the cache entry to retrieve
CacheFaultException
- if there is no entry with the given key or if the entry is to old.
|
iiitToolkit 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |