Uses of Class
org.apache.juneau.commons.collections.Cache2.Builder
Packages that use Cache2.Builder
Package
Description
Enhanced collection utilities that extend the standard Java Collections Framework with fluent APIs,
specialized collection types, and caching capabilities.
-
Uses of Cache2.Builder in org.apache.juneau.commons.collections
Methods in org.apache.juneau.commons.collections that return Cache2.BuilderModifier and TypeMethodDescriptionSets the caching mode for this cache.static <K1,K2, V> Cache2.Builder<K1, K2, V> Cache2.create()Creates a newCache2.Builderfor constructing a cache with explicit type parameters.Conditionally enables logging of cache statistics when the JVM exits.Enables logging of cache statistics when the JVM exits.Cache2.Builder.maxSize(int value) Specifies the maximum number of entries allowed in this cache.static <K1,K2, V> Cache2.Builder<K1, K2, V> Creates a newCache2.Builderfor constructing a cache.Specifies the default supplier function for computing values when keys are not found.Cache2.Builder.threadLocal()Enables thread-local caching.Cache2.Builder.weak()Sets the caching mode toWEAK.Constructors in org.apache.juneau.commons.collections with parameters of type Cache2.Builder