public class SLRUMap<K,V>
extends java.lang.Object
Constructor and Description |
---|
SLRUMap(int protectedQueueSize,
int probationalQueueSize) |
SLRUMap(int protectedQueueSize,
int probationalQueueSize,
EqualityPolicy<? super K> hashingStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
clearByCondition(Condition<? super V> condition) |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
get(K key) |
void |
iterateKeys(Consumer<? super K> keyConsumer) |
protected void |
onDropFromCache(K key,
V value) |
void |
put(K key,
V value) |
protected void |
putToProtectedQueue(K key,
V value) |
boolean |
remove(K key) |
public SLRUMap(int protectedQueueSize, int probationalQueueSize)
public SLRUMap(int protectedQueueSize, int probationalQueueSize, EqualityPolicy<? super K> hashingStrategy)
public boolean remove(K key)
public void clear()