public final class ServerPrepareStatementCache extends LinkedHashMap<String,ServerPrepareResult>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
static ServerPrepareStatementCache |
newInstance(int size,
Protocol protocol) |
ServerPrepareResult |
put(String key,
ServerPrepareResult result)
Associates the specified value with the specified key in this map.
|
boolean |
removeEldestEntry(Map.Entry eldest)
Remove eldestEntry.
|
String |
toString() |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, size
public static ServerPrepareStatementCache newInstance(int size, Protocol protocol)
public boolean removeEldestEntry(Map.Entry eldest)
removeEldestEntry
in class LinkedHashMap<String,ServerPrepareResult>
eldest
- eldest entrypublic ServerPrepareResult put(String key, ServerPrepareResult result)
put
in interface Map<String,ServerPrepareResult>
put
in class HashMap<String,ServerPrepareResult>
key
- keyresult
- new prepare result.public String toString()
toString
in class AbstractMap<String,ServerPrepareResult>
Copyright © 2017. All rights reserved.