KEYTYPE - Cache key typeVALUETYPE - Cache value type@ThreadSafe public class SimpleCacheWithConversion<KEYTYPE,VALUETYPE> extends AbstractCache<KEYTYPE,VALUETYPE>
DEFAULT_JMX_ENABLED, m_aCacheAccessStats, m_aRWLock, STATISTICS_PREFIX| Constructor and Description |
|---|
SimpleCacheWithConversion(String sCacheName) |
| Modifier and Type | Method and Description |
|---|---|
VALUETYPE |
getFromCache(KEYTYPE aKey,
IUnidirectionalConverter<KEYTYPE,VALUETYPE> aValueRetriever)
Get the value from the cache.
|
clearCache, createCache, getFromCache, getFromCacheNoStats, getFromCacheNoStatsNotLocked, getFromCacheNotLocked, getName, isEmpty, isJMXEnabled, isNotEmpty, putInCache, putInCacheNotLocked, removeFromCache, setJMXEnabled, size, toString@Nonnull public final VALUETYPE getFromCache(@Nonnull KEYTYPE aKey, @Nonnull IUnidirectionalConverter<KEYTYPE,VALUETYPE> aValueRetriever)
aKey - The key of the cached object. May not be null.aValueRetriever - The converter to be used to retrieve the object to cache. May not be
null. This converter may not return null
objects to cache!null.Copyright © 2006–2015 phloc systems. All rights reserved.