Package org.jdbi.v3.core.config
Class JdbiCaches
java.lang.Object
org.jdbi.v3.core.config.JdbiCaches
- All Implemented Interfaces:
JdbiConfig<JdbiCaches>
Hold metadata caches which maps various JVM constants into pre-parsed forms.
For example, bean property accessors, or normalized enum constants.
Note that unlike most JdbiConfig types, this cache is Jdbi level and shared,
so it should not hold data that needs to respect reconfiguration.
Additionally, currently there is no expiration policy, as nearly all keys are
references to JVM constant pool entries.
This makes it unsuitable as a general-purpose shared cache.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDoes not actually create a copy!!static <K,
V> JdbiCache<K, V> declare
(BiFunction<ConfigRegistry, K, V> computer) static <K,
V> JdbiCache<K, V> declare
(Function<K, ?> keyNormalizer, BiFunction<ConfigRegistry, K, V> computer) static <K,
V> JdbiCache<K, V> static <K,
V> JdbiCache<K, V> Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
Constructor Details
-
JdbiCaches
public JdbiCaches()
-
-
Method Details
-
createCopy
Does not actually create a copy!!- Specified by:
createCopy
in interfaceJdbiConfig<JdbiCaches>
- Returns:
- a copy of this configuration object.
-
declare
-
declare
-
declare
-
declare
public static <K,V> JdbiCache<K,V> declare(Function<K, ?> keyNormalizer, BiFunction<ConfigRegistry, K, V> computer)
-