public class LruTraceCache extends java.util.LinkedHashMap<java.lang.String,TraceObject>
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicLong |
increment |
Constructor and Description |
---|
LruTraceCache() |
Modifier and Type | Method and Description |
---|---|
void |
clearMemory()
Permit to clear array's of array, to help garbage.
|
java.lang.String |
printStack()
Value of trace cache in a readable format.
|
TraceObject |
put(TraceObject value)
Add value to map.
|
protected boolean |
removeEldestEntry(java.util.Map.Entry<java.lang.String,TraceObject> eldest) |
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 TraceObject put(TraceObject value)
value
- value to addprotected boolean removeEldestEntry(java.util.Map.Entry<java.lang.String,TraceObject> eldest)
removeEldestEntry
in class java.util.LinkedHashMap<java.lang.String,TraceObject>
public java.lang.String printStack()
public void clearMemory()