Package org.mariadb.r2dbc.util
Class PrepareCache
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,ServerPrepareResult>
-
- org.mariadb.r2dbc.util.PrepareCache
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,ServerPrepareResult>
public class PrepareCache extends LinkedHashMap<String,ServerPrepareResult>
- See Also:
- Serialized Form
-
-
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>
-
-
Constructor Summary
Constructors Constructor Description PrepareCache(int size, org.mariadb.r2dbc.client.Client client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerPrepareResultput(String key, ServerPrepareResult result)booleanremoveEldestEntry(Map.Entry<String,ServerPrepareResult> eldest)-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, 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, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
removeEldestEntry
public boolean removeEldestEntry(Map.Entry<String,ServerPrepareResult> eldest)
- Overrides:
removeEldestEntryin classLinkedHashMap<String,ServerPrepareResult>
-
put
public ServerPrepareResult put(String key, ServerPrepareResult result)
- Specified by:
putin interfaceMap<String,ServerPrepareResult>- Overrides:
putin classHashMap<String,ServerPrepareResult>
-
-