public class TimedCache<K,V> extends AbstractCacheMap<K,V>
Cache methods, however,
it is possible to schedule prunes on fined-rate delays.| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.Timer |
pruneTimer |
cacheMap, cacheSize, existCustomTimeout, hitCount, missCount, timeout| 构造器和说明 |
|---|
TimedCache(long timeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cancelPruneSchedule()
取消定时删除
|
protected int |
pruneCache()
Prunes expired elements from the cache.
|
void |
schedulePrune(long delay)
定时删除
|
clear, get, getHitCount, getMissCount, isEmpty, isFull, isPruneExpiredActive, isReallyFull, limit, onRemove, prune, put, put, remove, size, snapshot, timeoutprotected int pruneCache()
pruneCache 在类中 AbstractCacheMap<K,V>public void schedulePrune(long delay)
delay - 定时时间public void cancelPruneSchedule()