|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.pipeline.caching.AbstractCache org.apache.cocoon.pipeline.caching.SimpleCache
public class SimpleCache
A very simple implementation of the Cache
interface.
It uses a WeakHashMap
as internal data store.
Constructor Summary | |
---|---|
SimpleCache()
|
Method Summary | |
---|---|
protected void |
doClear()
Actually clears the underlying storage. |
protected boolean |
doRemove(CacheKey cacheKey)
Actually removes cached data from underlying storage. |
protected CacheValue |
retrieve(CacheKey cacheKey)
Actually retrieves the CacheValue from the underlying storage. |
protected Set<CacheKey> |
retrieveKeySet()
Actually retrieves the Set for CacheKey from underlying storage. |
protected void |
store(CacheKey cacheKey,
CacheValue cacheValue)
Actually stores the given cacheValue at the given cacheKey in the underlying storage. |
String |
toString()
|
Methods inherited from class org.apache.cocoon.pipeline.caching.AbstractCache |
---|
clear, get, get, isValid, keySet, put, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleCache()
Method Detail |
---|
public String toString()
toString
in class Object
Object.toString()
protected CacheValue retrieve(CacheKey cacheKey)
CacheValue
from the underlying storage.
retrieve
in class AbstractCache
cacheKey
- The CacheKey
to be used for retrieval.
CacheValue
or null
if no CacheValue
is stored at the given
cacheKey
.AbstractCache.retrieve(org.apache.cocoon.pipeline.caching.CacheKey)
protected void store(CacheKey cacheKey, CacheValue cacheValue)
cacheValue
at the given cacheKey
in the underlying storage.CacheValue
(if any).
store
in class AbstractCache
cacheKey
- The CacheKey
to be used for storing.cacheValue
- The CacheValue
to be stored.AbstractCache.store(org.apache.cocoon.pipeline.caching.CacheKey,
org.apache.cocoon.pipeline.caching.CacheValue)
protected void doClear()
doClear
in class AbstractCache
org.apache.cocoon.pipeline.caching.AbstractCach#doClear()
protected boolean doRemove(CacheKey cacheKey)
doRemove
in class AbstractCache
cacheKey
- The CacheKey
to be removed.org.apache.cocoon.pipeline.caching.AbstractCach#doRemove(org.apache.cocoon.pipeline.caching.CacheKey)
protected Set<CacheKey> retrieveKeySet()
Set
for CacheKey
from underlying storage.
retrieveKeySet
in class AbstractCache
Set
of CacheKey
of containded data.org.apache.cocoon.pipeline.caching.AbstractCach#retrieve()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |