Uses of Interface
com.github.benmanes.caffeine.cache.Weigher
Packages that use Weigher
Package
Description
This package contains caching utilities.
-
Uses of Weigher in com.github.benmanes.caffeine.cache
Classes in com.github.benmanes.caffeine.cache that implement WeigherModifier and TypeClassDescription(package private) static final class
Async.AsyncWeigher<K,
V> A weigher for asynchronous computations.(package private) final class
BoundedWeigher<K,
V> (package private) enum
Fields in com.github.benmanes.caffeine.cache declared as WeigherModifier and TypeFieldDescriptionAsync.AsyncWeigher.delegate
BoundedWeigher.delegate
BoundedLocalCache.weigher
Caffeine.weigher
(package private) @Nullable Weigher
<?, ?> SerializationProxy.weigher
Methods in com.github.benmanes.caffeine.cache that return WeigherModifier and TypeMethodDescriptionstatic <K,
V> @NonNull Weigher <K, V> Weigher.boundedWeigher
(@NonNull Weigher<K, V> delegate) Returns a weigher that enforces that the weight is non-negative.Caffeine.getWeigher
(boolean isAsync) static <K,
V> @NonNull Weigher <K, V> Weigher.singletonWeigher()
Returns a weigher where an entry has a weight of1
.Methods in com.github.benmanes.caffeine.cache with parameters of type WeigherModifier and TypeMethodDescriptionstatic <K,
V> @NonNull Weigher <K, V> Weigher.boundedWeigher
(@NonNull Weigher<K, V> delegate) Returns a weigher that enforces that the weight is non-negative.Specifies the weigher to use in determining the weight of entries.Constructors in com.github.benmanes.caffeine.cache with parameters of type WeigherModifierConstructorDescription(package private)
AsyncWeigher
(Weigher<K, V> delegate) (package private)
BoundedWeigher
(Weigher<? super K, ? super V> delegate) -
Uses of Weigher in com.github.benmanes.caffeine.jcache.configuration
Fields in com.github.benmanes.caffeine.jcache.configuration with type parameters of type WeigherMethods in com.github.benmanes.caffeine.jcache.configuration that return types with arguments of type WeigherModifier and TypeMethodDescriptionCaffeineConfiguration.getWeigherFactory()
Returns theFactory
for theWeigher
to be used for the cache.Method parameters in com.github.benmanes.caffeine.jcache.configuration with type arguments of type Weigher