public class TimedCache<K,V> extends AbstractCacheMap<K,V>
Cache
methods, however,
it is possible to schedule prunes on fined-rate delays.Modifier and Type | Field and Description |
---|---|
protected java.util.Timer |
pruneTimer |
cacheMap, cacheSize, existCustomTimeout, hitCount, missCount, timeout
Constructor and Description |
---|
TimedCache(long timeout) |
Modifier and Type | Method and Description |
---|---|
void |
cancelPruneSchedule()
Cancels prune schedules.
|
protected int |
pruneCache()
Prunes expired elements from the cache.
|
void |
schedulePrune(long delay)
Schedules prune.
|
clear, createCacheObject, get, getHitCount, getMissCount, isEmpty, isFull, isPruneExpiredActive, isReallyFull, limit, onRemove, prune, put, put, remove, size, snapshot, timeout
protected int pruneCache()
pruneCache
in class AbstractCacheMap<K,V>
public void schedulePrune(long delay)
public void cancelPruneSchedule()
Copyright © 2003-present Jodd Team