KEYTYPE - Cache key typeVALUETYPE - Cache value type@ThreadSafe public class SimpleCacheWithConversionAndMaxSize<KEYTYPE,VALUETYPE> extends SimpleCacheWithConversion<KEYTYPE,VALUETYPE>
DEFAULT_JMX_ENABLED, m_aCacheAccessStats, m_aRWLock, STATISTICS_PREFIX| Constructor and Description |
|---|
SimpleCacheWithConversionAndMaxSize(String sCacheName,
int nMaxSize) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<KEYTYPE,VALUETYPE> |
createCache()
Create a new cache map.
|
int |
getMaxSize() |
String |
toString() |
getFromCacheclearCache, getFromCache, getFromCacheNoStats, getFromCacheNoStatsNotLocked, getFromCacheNotLocked, getName, isEmpty, isJMXEnabled, isNotEmpty, putInCache, putInCacheNotLocked, removeFromCache, setJMXEnabled, sizepublic SimpleCacheWithConversionAndMaxSize(@Nonnull String sCacheName, @Nonnegative int nMaxSize)
@Nonnegative public final int getMaxSize()
@Nonnull protected final Map<KEYTYPE,VALUETYPE> createCache()
AbstractCachecreateCache in class AbstractCache<KEYTYPE,VALUETYPE>null.public String toString()
toString in class AbstractCache<KEYTYPE,VALUETYPE>Copyright © 2006–2014 phloc systems. All rights reserved.