public class PredicateLRUCache<K,V> extends LRUCache<K,V>
LRUCache
with predicate support.GenericService.StartCommand, GenericService.StopCommand
CLASS_VERSION
mLogger, state
Constructor and Description |
---|
PredicateLRUCache() |
Modifier and Type | Method and Description |
---|---|
protected String |
getCacheStatistics()
Returns cache statistics as a string.
|
org.apache.commons.collections.Predicate |
getPredicate() |
void |
setPredicate(org.apache.commons.collections.Predicate pPredicate) |
getCacheItems, getKeys, getSize, startService, stopService
addObject, expireObject, flushCache, getAdds, getAges, getAverageIdleTimeSinceLastThrow, getAverageIdleTimeWhenThrown, getCacheType, getClears, getExpires, getHitRatio, getHits, getLastThrow, getMaxSize, getMisses, getObject, getPushes, getRemoves, getReport, getStatistic, getStatisticKeys, getTimeSinceLastThrow, getTotalTime, getValidSeconds, hasObject, remove, reset, setCacheType, setMaxSize, setValidSeconds, toString
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
public org.apache.commons.collections.Predicate getPredicate()
public void setPredicate(org.apache.commons.collections.Predicate pPredicate)
protected String getCacheStatistics()
AbstractCache
AbstractCache.toString()
. Subclasses might override this
method to provide additional statistics to the cache. The default implementation adds all statistics from
the CacheStatisticsSource
. If subclasses wants this information in their AbstractCache.toString()
they
must include the result from the default implemetation in their return valuegetCacheStatistics
in class AbstractCache<K,V>
© 1998- 2018 Stibo DX