|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the Cocoon cache. This component is responsible for storing and retrieving cached responses. It can be used to monitor the cache or to investigate which responses are cached etc. This interface will grow!
Field Summary | |
static String |
ROLE
The Avalon Role |
Method Summary | |
void |
clear()
clear cache of all cached responses |
boolean |
containsKey(Serializable key)
See if a response is cached under this key. |
CachedResponse |
get(Serializable key)
Get a cached response. |
void |
remove(Serializable key)
Remove a cached response. |
void |
store(Serializable key,
CachedResponse response)
Store a cached response |
Field Detail |
public static final String ROLE
Method Detail |
public void store(Serializable key, CachedResponse response) throws ProcessingException
key
- the key used by the caching algorithm to identify the
requestresponse
- the cached response
ProcessingException
public CachedResponse get(Serializable key)
null
is returned.
key
- the key used by the caching algorithm to identify the
requestpublic void remove(Serializable key)
key
- the key used by the caching algorithm to identify the
requestpublic void clear()
public boolean containsKey(Serializable key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |