K - V - public class FIFOCache<K,V> extends AbstractCache<K,V>
| 构造器和说明 |
|---|
FIFOCache() |
FIFOCache(int maxCapacity,
long evictExpiredInterval) |
FIFOCache(int maxCapacity,
long evictExpiredInterval,
Timer timer) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addToCache(Entry<K,V> entry) |
protected void |
afterRead(Entry<K,V> entry) |
protected void |
afterRecomputeExpireTimeOnRead(Entry<K,V> entry) |
protected void |
beforeRead(Entry<K,V> entry) |
protected void |
beforeRecomputeExpireTimeOnRead(Entry<K,V> entry) |
protected List<K> |
forceEvict(int count)
用于找到将被强制清除的
|
protected void |
removeFromCache(Entry<K,V> entry,
RemoveCause removeCause) |
clean, get, get, getAll, getAllIfPresent, getIfPresent, incrementUsedCount, refresh, remove, remove, remove, set, set, set, setKeyReferenceType, setReferenceQueue, setTimer, setValueReferenceType, shutdown, size, startup, toMappublic FIFOCache()
public FIFOCache(int maxCapacity,
long evictExpiredInterval)
public FIFOCache(int maxCapacity,
long evictExpiredInterval,
Timer timer)
protected void addToCache(Entry<K,V> entry)
addToCache 在类中 AbstractCache<K,V>protected void beforeRecomputeExpireTimeOnRead(Entry<K,V> entry)
beforeRecomputeExpireTimeOnRead 在类中 AbstractCache<K,V>protected void afterRecomputeExpireTimeOnRead(Entry<K,V> entry)
afterRecomputeExpireTimeOnRead 在类中 AbstractCache<K,V>protected void beforeRead(Entry<K,V> entry)
beforeRead 在类中 AbstractCache<K,V>protected void removeFromCache(Entry<K,V> entry, RemoveCause removeCause)
removeFromCache 在类中 AbstractCache<K,V>protected List<K> forceEvict(int count)
AbstractCacheforceEvict 在类中 AbstractCache<K,V>Copyright © 2021. All rights reserved.