public class SimpleCache<K,V> extends AbstractCache<K,V>
GenericService.StartCommand, GenericService.StopCommand
CLASS_VERSION
mLogger, state
Constructor and Description |
---|
SimpleCache() |
SimpleCache(int pMaxSize) |
Modifier and Type | Method and Description |
---|---|
Map<K,CacheItem<K,V>> |
getCacheItems()
Deprecated.
Use
getKeys() instead |
Iterable<K> |
getKeys()
Returns all the keys in the cache
|
int |
getSize()
Returns the current size of the cache.
|
addObject, expireObject, flushCache, getAdds, getAges, getAverageIdleTimeSinceLastThrow, getAverageIdleTimeWhenThrown, getCacheStatistics, getCacheType, getClears, getExpires, getHitRatio, getHits, getLastThrow, getMaxSize, getMisses, getObject, getPushes, getRemoves, getReport, getStatistic, getStatisticKeys, getTimeSinceLastThrow, getTotalTime, getValidSeconds, hasObject, remove, reset, setCacheType, setMaxSize, setValidSeconds, startService, stopService, toString
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
@Deprecated public Map<K,CacheItem<K,V>> getCacheItems()
getKeys()
insteadpublic Iterable<K> getKeys()
Cache
Iterable
containing all the keys in the cachepublic int getSize()
Cache
getMaxSize
© 1998- 2018 Stibo DX