public class LruTraceCache extends LinkedHashMap<String,TraceObject>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LruTraceCache() |
Modifier and Type | Method and Description |
---|---|
void |
clearMemory()
Permit to clear array's of array, to help garbage.
|
String |
printStack()
Value of trace cache in a readable format.
|
TraceObject |
put(TraceObject value)
Add value to map.
|
protected boolean |
removeEldestEntry(Map.Entry<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
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public TraceObject put(TraceObject value)
value
- value to addprotected boolean removeEldestEntry(Map.Entry<String,TraceObject> eldest)
removeEldestEntry
in class LinkedHashMap<String,TraceObject>
public String printStack()
public void clearMemory()
Copyright © 2018 mariadb.org. All rights reserved.