Uses of Interface
com.github.benmanes.caffeine.cache.Weigher
-
Packages that use Weigher Package Description com.github.benmanes.caffeine.cache This package contains caching utilities.com.github.benmanes.caffeine.jcache.configuration -
-
Uses of Weigher in com.github.benmanes.caffeine.cache
Classes in com.github.benmanes.caffeine.cache that implement Weigher Modifier and Type Class Description (package private) static class
Async.AsyncWeigher<K,V>
A weigher for asynchronous computations.(package private) class
BoundedWeigher<K,V>
(package private) class
SingletonWeigher
Fields in com.github.benmanes.caffeine.cache declared as Weigher Modifier and Type Field Description (package private) Weigher<K,V>
Async.AsyncWeigher. delegate
(package private) Weigher<? super K,? super V>
BoundedWeigher. delegate
(package private) Weigher<K,V>
BoundedLocalCache. weigher
(package private) @Nullable Weigher<? super K,? super V>
Caffeine. weigher
(package private) @Nullable Weigher<?,?>
SerializationProxy. weigher
Methods in com.github.benmanes.caffeine.cache that return Weigher Modifier and Type Method Description static <K,V>
@NonNull Weigher<K,V>Weigher. boundedWeigher(@NonNull Weigher<K,V> delegate)
Returns a weigher that enforces that the weight is non-negative.(package private) <K1 extends K,V1 extends V>
@NonNull Weigher<K1,V1>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 Weigher Modifier and Type Method Description static <K,V>
@NonNull Weigher<K,V>Weigher. boundedWeigher(@NonNull Weigher<K,V> delegate)
Returns a weigher that enforces that the weight is non-negative.<K1 extends K,V1 extends V>
@NonNull Caffeine<K1,V1>Caffeine. weigher(@NonNull Weigher<? super K1,? super V1> weigher)
Specifies the weigher to use in determining the weight of entries.Constructors in com.github.benmanes.caffeine.cache with parameters of type Weigher Constructor Description AsyncWeigher(Weigher<K,V> delegate)
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 Weigher Modifier and Type Field Description private @Nullable javax.cache.configuration.Factory<Weigher<K,V>>
CaffeineConfiguration. weigherFactory
Methods in com.github.benmanes.caffeine.jcache.configuration that return types with arguments of type Weigher Modifier and Type Method Description java.util.Optional<javax.cache.configuration.Factory<Weigher<K,V>>>
CaffeineConfiguration. 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 Modifier and Type Method Description void
CaffeineConfiguration. setWeigherFactory(java.util.Optional<javax.cache.configuration.Factory<? extends Weigher<K,V>>> factory)
Set theFactory
for theWeigher
.
-