public class PrepareStatementCache extends LinkedHashMap<PrepareStatementCacheKey,PrepareResult>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Method and Description |
|---|---|
static PrepareStatementCache |
newInstance(int size,
Protocol protocol) |
PrepareResult |
putIfNone(PrepareStatementCacheKey key,
PrepareResult value)
Add prepared statement to cache.
|
protected boolean |
removeEldestEntry(Map.Entry<PrepareStatementCacheKey,PrepareResult> eldest) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic static PrepareStatementCache newInstance(int size, Protocol protocol)
public PrepareResult putIfNone(PrepareStatementCacheKey key, PrepareResult value)
key - sqlvalue - prepareResultprotected boolean removeEldestEntry(Map.Entry<PrepareStatementCacheKey,PrepareResult> eldest)
removeEldestEntry in class LinkedHashMap<PrepareStatementCacheKey,PrepareResult>Copyright © 2016. All rights reserved.