KEYTYPE - Cache key typeVALUETYPE - Cache value type@ThreadSafe public abstract class AbstractNotifyingCache<KEYTYPE,VALUETYPE> extends AbstractCache<KEYTYPE,VALUETYPE>
DEFAULT_JMX_ENABLED, m_aCacheAccessStats, m_aRWLock, STATISTICS_PREFIX| Constructor and Description |
|---|
AbstractNotifyingCache(String sCacheName) |
| Modifier and Type | Method and Description |
|---|---|
VALUETYPE |
getFromCache(KEYTYPE aKey)
Get the cached value associated with the passed key.
|
protected abstract VALUETYPE |
getValueToCache(KEYTYPE aKey)
This abstract method is invoked, once a new value needs to be put into the
cache.
|
clearCache, createCache, getFromCacheNoStats, getFromCacheNoStatsNotLocked, getFromCacheNotLocked, getName, isEmpty, isJMXEnabled, isNotEmpty, putInCache, putInCacheNotLocked, removeFromCache, setJMXEnabled, size, toString@Nonnull @IsLocked(value=WRITE) protected abstract VALUETYPE getValueToCache(KEYTYPE aKey)
aKey - The key for which the value to cache is required. May be
nullable or not - depends upon the implementation.null.public final VALUETYPE getFromCache(KEYTYPE aKey)
ISimpleCachegetFromCache in interface ISimpleCache<KEYTYPE,VALUETYPE>getFromCache in class AbstractCache<KEYTYPE,VALUETYPE>aKey - The key to be looked up. May be nullable or not -
depends upon the implementation.null if no such value is in the cache.Copyright © 2006–2014 phloc systems. All rights reserved.