K - 键V - 值public class WeakCache<K,V> extends TimedCache<K,V>
lockcacheMap, capacity, existCustomTimeout, hitCount, keyLockMap, listener, missCount, timeout| 构造器和说明 |
|---|
WeakCache(long timeout)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
WeakCache<K,V> |
setListener(CacheListener<K,V> listener)
设置监听
|
cancelPruneSchedule, pruneCache, schedulePrunecacheObjIterator, clear, containsKey, get, prune, put, removecacheObjIter, capacity, get, getHitCount, getMissCount, getWithoutLock, isEmpty, isFull, isPruneExpiredActive, iterator, keySet, onRemove, put, putWithoutLock, removeWithoutLock, size, timeout, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic WeakCache<K,V> setListener(CacheListener<K,V> listener)
AbstractCachesetListener 在接口中 Cache<K,V>setListener 在类中 AbstractCache<K,V>listener - 监听Copyright © 2023. All rights reserved.