|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cache
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 |
---|
static final String ROLE
Method Detail |
---|
void store(Serializable key, CachedResponse response) throws ProcessingException
key
- the key used by the caching algorithm to identify the
requestresponse
- the cached response
ProcessingException
CachedResponse get(Serializable key)
null
is returned.
key
- the key used by the caching algorithm to identify the
requestvoid remove(Serializable key)
key
- the key used by the caching algorithm to identify the
requestvoid clear()
boolean containsKey(Serializable key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |