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 |
afterRecomputeExpireTimeOnRead(Entry<K,V> entry) |
protected void |
beforeRecomputeExpireTimeOnRead(Entry<K,V> entry) |
protected List<Entry<K,V>> |
forceEvict(int count) |
protected void |
removeFromCache(Entry<K,V> entry,
RemoveCause removeCause) |
public 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 removeFromCache(Entry<K,V> entry, RemoveCause removeCause)
removeFromCache 在类中 AbstractCache<K,V>protected List<Entry<K,V>> forceEvict(int count)
forceEvict 在类中 AbstractCache<K,V>Copyright © 2019. All rights reserved.