K
- the type of the map key, see Map
.V
- the type of the map value, see Map
.public class WorkingSetCache<K,V> extends LRUCache<K,V>
Constructor and Description |
---|
WorkingSetCache(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
setWorkingSet(java.util.Set<K> workingSet)
Sets the current working set, ensuring that elements in this working set
will not be ejected in the near future.
|
removeEldestEntry
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public void setWorkingSet(java.util.Set<K> workingSet)
workingSet
- set of K that makes up the current working set.