Uses of Class
com.github.benmanes.caffeine.cache.RemovalCause
-
Packages that use RemovalCause Package Description com.github.benmanes.caffeine.cache This package contains caching utilities.com.github.benmanes.caffeine.cache.stats This package contains caching statistic utilities.com.github.benmanes.caffeine.jcache.event -
-
Uses of RemovalCause in com.github.benmanes.caffeine.cache
Methods in com.github.benmanes.caffeine.cache that return RemovalCause Modifier and Type Method Description static RemovalCause
RemovalCause. valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RemovalCause[]
RemovalCause. values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.github.benmanes.caffeine.cache with parameters of type RemovalCause Modifier and Type Method Description void
CacheWriter. delete(@NonNull K key, @Nullable V value, @NonNull RemovalCause cause)
Deprecated.Deletes the value corresponding to thekey
from the external resource.void
Caffeine.CacheWriterAdapter. delete(K key, @Nullable V value, RemovalCause cause)
void
DisabledWriter. delete(java.lang.Object key, @Nullable java.lang.Object value, RemovalCause cause)
(package private) boolean
BoundedLocalCache. evictEntry(Node<K,V> node, RemovalCause cause, long now)
Attempts to evict the entry based on the given removal cause.void
BoundedLocalCache. notifyRemoval(@Nullable K key, @Nullable V value, RemovalCause cause)
void
LocalCache. notifyRemoval(@Nullable K key, @Nullable V value, RemovalCause cause)
Asynchronously sends a removal notification to the listener.void
UnboundedLocalCache. notifyRemoval(@Nullable K key, @Nullable V value, RemovalCause cause)
void
Async.AsyncRemovalListener. onRemoval(@Nullable K key, @Nullable java.util.concurrent.CompletableFuture<V> future, RemovalCause cause)
void
RemovalListener. onRemoval(@Nullable K key, @Nullable V value, @NonNull RemovalCause cause)
Notifies the listener that a removal occurred at some point in the past. -
Uses of RemovalCause in com.github.benmanes.caffeine.cache.stats
Methods in com.github.benmanes.caffeine.cache.stats with parameters of type RemovalCause Modifier and Type Method Description void
ConcurrentStatsCounter. recordEviction(int weight, RemovalCause cause)
void
GuardedStatsCounter. recordEviction(int weight, RemovalCause cause)
default void
StatsCounter. recordEviction(@org.checkerframework.checker.index.qual.NonNegative int weight, RemovalCause cause)
Records the eviction of an entry from the cache. -
Uses of RemovalCause in com.github.benmanes.caffeine.jcache.event
Methods in com.github.benmanes.caffeine.jcache.event with parameters of type RemovalCause Modifier and Type Method Description void
JCacheEvictionListener. onRemoval(K key, @Nullable Expirable<V> expirable, RemovalCause cause)
-