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.
|
removeEldestEntryclear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic void setWorkingSet(java.util.Set<K> workingSet)
workingSet - set of K that makes up the current working set.