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. |
void |
destroy()
Perform the clean up.
|
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, putgetDecoratedObject, 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)
AbstractSynchronizedCacheStrategyDecoratorloadValue in class AbstractSynchronizedCacheStrategyDecorator<CacheKey,CacheValue>protected void onBeforeGet(CacheKey key)
AbstractSynchronizedCacheStrategyDecoratoronBeforeGet in class AbstractSynchronizedCacheStrategyDecorator<CacheKey,CacheValue>public void clear()
CacheStrategyDecoratorclear in interface CacheStrategy<CacheKey,CacheValue>clear in class CacheStrategyDecorator<CacheKey,CacheValue>public void destroy()
CacheStrategyDecoratordestroy in interface CacheStrategy<CacheKey,CacheValue>destroy in class CacheStrategyDecorator<CacheKey,CacheValue>Copyright © 2008-2014. All Rights Reserved.