Package org.mariadb.jdbc.client
Class PrepareCache
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
CachedPrepareResultPacket>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientImpl
private final int
private static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(String key, ServerPreparedStatement preparedStatement) put
(String key, CachedPrepareResultPacket result, ServerPreparedStatement preparedStatement) put
(String key, PrepareResultPacket result) boolean
void
reset()
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, getOrDefault, keySet, replaceAll, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
maxSize
private final int maxSize -
con
-
-
Constructor Details
-
PrepareCache
-
-
Method Details
-
removeEldestEntry
- Overrides:
removeEldestEntry
in classLinkedHashMap<String,
CachedPrepareResultPacket>
-
get
-
put
public CachedPrepareResultPacket put(String key, CachedPrepareResultPacket result, ServerPreparedStatement preparedStatement) -
get
- Specified by:
get
in interfaceMap<String,
CachedPrepareResultPacket> - Overrides:
get
in classLinkedHashMap<String,
CachedPrepareResultPacket>
-
put
-
reset
public void reset()
-