|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ro.isdc.wro.util.AbstractDecorator<CacheStrategy<K,V>> ro.isdc.wro.cache.support.CacheStrategyDecorator<K,V> ro.isdc.wro.cache.support.AbstractSynchronizedCacheStrategyDecorator<CacheKey,CacheValue> ro.isdc.wro.cache.support.DefaultSynchronizedCacheStrategyDecorator
public class DefaultSynchronizedCacheStrategyDecorator
Responsible for invoking GroupsProcessor
when cache key is missed.
Method Summary | |
---|---|
void |
clear()
Clear all cache contents. |
static CacheStrategy<CacheKey,CacheValue> |
decorate(CacheStrategy<CacheKey,CacheValue> decorated)
Decorates the provided CacheStrategy . |
protected CacheValue |
loadValue(CacheKey key)
Loads the value associated with the key. |
protected void |
onBeforeGet(CacheKey key)
Invoked just before the get method is invoked. |
Methods inherited from class ro.isdc.wro.cache.support.AbstractSynchronizedCacheStrategyDecorator |
---|
get, put |
Methods inherited from class ro.isdc.wro.cache.support.CacheStrategyDecorator |
---|
destroy |
Methods inherited from class ro.isdc.wro.util.AbstractDecorator |
---|
getDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static CacheStrategy<CacheKey,CacheValue> decorate(CacheStrategy<CacheKey,CacheValue> decorated)
CacheStrategy
. The provided CacheStrategy
won't be decorated if the
operation is redundant.
protected CacheValue loadValue(CacheKey key)
loadValue
in class AbstractSynchronizedCacheStrategyDecorator<CacheKey,CacheValue>
protected void onBeforeGet(CacheKey key)
onBeforeGet
in class AbstractSynchronizedCacheStrategyDecorator<CacheKey,CacheValue>
public void clear()
clear
in interface CacheStrategy<CacheKey,CacheValue>
clear
in class CacheStrategyDecorator<CacheKey,CacheValue>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |