@Deprecated
public final class LRUProtectionStorage
extends java.util.LinkedHashMap<java.lang.Object,java.lang.Object>
| Modifier and Type | Field and Description |
|---|---|
private int |
maxSize
Deprecated.
|
private static long |
serialVersionUID
Deprecated.
|
| Constructor and Description |
|---|
LRUProtectionStorage(int maxSize)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Deprecated.
Performs a shallow clone
|
protected boolean |
removeEldestEntry(java.util.Map.Entry<java.lang.Object,java.lang.Object> eldest)
Deprecated.
|
void |
touch(java.lang.Object key,
java.lang.Object value)
Deprecated.
The touch method can be used to renew an element and move it to the from of the LRU queue.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuescompute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeprivate static final long serialVersionUID
private final int maxSize
protected boolean removeEldestEntry(java.util.Map.Entry<java.lang.Object,java.lang.Object> eldest)
removeEldestEntry in class java.util.LinkedHashMap<java.lang.Object,java.lang.Object>public void touch(java.lang.Object key,
java.lang.Object value)
key - The key of the element to renewvalue - A value to newly associate with the keypublic java.lang.Object clone()
clone in class java.util.HashMap<java.lang.Object,java.lang.Object>