|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.caching.impl.CacheImpl
public class CacheImpl
This is the Cocoon cache. This component is responsible for storing and retrieving cached responses. It can be used to monitor the cache or the investigate which responses are cached etc. This component will grow!
| Field Summary | |
|---|---|
protected ServiceManager |
manager
The service manager |
protected Store |
store
The store containing the cached responses |
| Fields inherited from interface org.apache.cocoon.caching.Cache |
|---|
ROLE |
| Constructor Summary | |
|---|---|
CacheImpl()
|
|
| Method Summary | |
|---|---|
void |
clear()
clear cache of all cached responses |
boolean |
containsKey(Serializable key)
See if a response is cached under this key |
void |
dispose()
Disposable Interface |
CachedResponse |
get(Serializable key)
Get a cached response. |
void |
parameterize(Parameters parameters)
|
void |
remove(Serializable key)
Remove a cached response. |
void |
service(ServiceManager manager)
Serviceable Interface |
void |
store(Serializable key,
CachedResponse response)
Store a cached response |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Store store
protected ServiceManager manager
| Constructor Detail |
|---|
public CacheImpl()
| Method Detail |
|---|
public void service(ServiceManager manager)
throws ServiceException
service in interface ServiceableServiceExceptionpublic void dispose()
dispose in interface Disposable
public void store(Serializable key,
CachedResponse response)
throws ProcessingException
store in interface Cachekey - the key used by the caching algorithm to identify the
requestresponse - the cached response
ProcessingExceptionpublic CachedResponse get(Serializable key)
null is returned.
get in interface Cachekey - the key used by the caching algorithm to identify the
requestpublic void remove(Serializable key)
remove in interface Cachekey - the key used by the caching algorithm to identify the
requestpublic void clear()
clear in interface Cachepublic boolean containsKey(Serializable key)
containsKey in interface Cache
public void parameterize(Parameters parameters)
throws ParameterException
parameterize in interface ParameterizableParameterException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||