V
- public class LrfuEvictionQueue<V extends BaseCacheEntry> extends Object
Modifier and Type | Field and Description |
---|---|
protected AtomicLong |
clock |
protected ConcurrentSkipListMap<CacheKey,V> |
evictionQueue |
protected long |
halfLife |
protected long |
maxInterval |
Constructor and Description |
---|
LrfuEvictionQueue(AtomicLong clock) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(V value) |
V |
firstEntry(boolean poll) |
Collection<V> |
getEvictionQueue() |
int |
getSize() |
boolean |
remove(V value) |
void |
setHalfLife(long halfLife) |
String |
toString() |
void |
touch(V value) |
protected ConcurrentSkipListMap<CacheKey,V extends BaseCacheEntry> evictionQueue
protected AtomicLong clock
protected long maxInterval
protected long halfLife
public LrfuEvictionQueue(AtomicLong clock)
Copyright © 2019. All rights reserved.