|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface implemented by all caches.
Field Summary | |
static String |
REVISION
|
Method Summary | |
int |
elementCount()
|
int |
hitCount()
|
void |
invalidate(Object id)
Invalidates the entry in this cache with a particular id. |
void |
invalidateAll()
Invalidates all entries in this cache. |
Object |
lookup(Object id)
Tries to find an element with a particular id in this cache. |
void |
put(Object id,
Object element)
Puts a particular element in this cache associated with a particular id. |
int |
requestCount()
|
void |
resetStatistics()
Resets the cache performance statistics to the values as they were when the cache was created. |
Field Detail |
public static final String REVISION
Method Detail |
public Object lookup(Object id)
id
- the id of the desired element.
public void put(Object id, Object element)
lookup(Object)
method.
id
- the id associated with the supplied element.element
- the element to store in the cache.
IllegalArgumentException
- if the supplied element is null.public void invalidate(Object id)
id
- the id corresponding to the element to invalidate.public void invalidateAll()
public int elementCount()
public int requestCount()
public int hitCount()
public void resetStatistics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |