public final class ServerPrepareStatementCache extends java.util.LinkedHashMap<java.lang.String,ServerPrepareResult>
| Modifier and Type | Field and Description |
|---|---|
private int |
maxSize |
private Protocol |
protocol |
| Modifier | Constructor and Description |
|---|---|
private |
ServerPrepareStatementCache(int size,
Protocol protocol) |
| Modifier and Type | Method and Description |
|---|---|
static ServerPrepareStatementCache |
newInstance(int size,
Protocol protocol) |
ServerPrepareResult |
put(java.lang.String key,
ServerPrepareResult result)
Associates the specified value with the specified key in this map.
|
boolean |
removeEldestEntry(java.util.Map.Entry eldest)
Remove eldestEntry.
|
java.lang.String |
toString() |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, sizeprivate final int maxSize
private final Protocol protocol
private ServerPrepareStatementCache(int size,
Protocol protocol)
public static ServerPrepareStatementCache newInstance(int size, Protocol protocol)
public boolean removeEldestEntry(java.util.Map.Entry eldest)
removeEldestEntry in class java.util.LinkedHashMap<java.lang.String,ServerPrepareResult>eldest - eldest entrypublic ServerPrepareResult put(java.lang.String key, ServerPrepareResult result)
put in interface java.util.Map<java.lang.String,ServerPrepareResult>put in class java.util.HashMap<java.lang.String,ServerPrepareResult>key - keyresult - new prepare result.public java.lang.String toString()
toString in class java.util.AbstractMap<java.lang.String,ServerPrepareResult>