public class DefaultSynchronizedCacheStrategyDecorator extends AbstractSynchronizedCacheStrategyDecorator<CacheKey,CacheValue>
GroupsProcessor when cache key is missed.| Modifier and Type | Method and Description |
|---|---|
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.
|
get, putdestroygetDecoratedObject, getOriginalDecoratedObject, getOriginalDecoratedObject, toStringpublic 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()
CacheStrategyDecoratorclear in interface CacheStrategy<CacheKey,CacheValue>clear in class CacheStrategyDecorator<CacheKey,CacheValue>Copyright © 2008-2013. All Rights Reserved.