Uses of Interface
com.google.common.cache.RemovalListener
-
Packages that use RemovalListener Package Description com.google.common.cache This package contains caching utilities. -
-
Uses of RemovalListener in com.google.common.cache
Classes in com.google.common.cache that implement RemovalListener Modifier and Type Class Description (package private) static class
CacheBuilder.NullListener
Fields in com.google.common.cache declared as RemovalListener Modifier and Type Field Description (package private) RemovalListener<? super K,? super V>
CacheBuilder. removalListener
(package private) RemovalListener<? super K,? super V>
LocalCache.ManualSerializationProxy. removalListener
(package private) RemovalListener<K,V>
LocalCache. removalListener
A listener that is invoked when an entry is removed due to expiration or garbage collection of soft/weak entries.Methods in com.google.common.cache that return RemovalListener Modifier and Type Method Description static <K,V>
RemovalListener<K,V>RemovalListeners. asynchronous(RemovalListener<K,V> listener, java.util.concurrent.Executor executor)
Returns aRemovalListener
which processes all eviction notifications usingexecutor
.(package private) <K1 extends K,V1 extends V>
RemovalListener<K1,V1>CacheBuilder. getRemovalListener()
Methods in com.google.common.cache with parameters of type RemovalListener Modifier and Type Method Description static <K,V>
RemovalListener<K,V>RemovalListeners. asynchronous(RemovalListener<K,V> listener, java.util.concurrent.Executor executor)
Returns aRemovalListener
which processes all eviction notifications usingexecutor
.<K1 extends K,V1 extends V>
CacheBuilder<K1,V1>CacheBuilder. removalListener(RemovalListener<? super K1,? super V1> listener)
Specifies a listener instance that caches should notify each time an entry is removed for any reason.Constructors in com.google.common.cache with parameters of type RemovalListener Constructor Description ManualSerializationProxy(LocalCache.Strength keyStrength, LocalCache.Strength valueStrength, Equivalence<java.lang.Object> keyEquivalence, Equivalence<java.lang.Object> valueEquivalence, long expireAfterWriteNanos, long expireAfterAccessNanos, long maxWeight, Weigher<K,V> weigher, int concurrencyLevel, RemovalListener<? super K,? super V> removalListener, Ticker ticker, CacheLoader<? super K,V> loader)
-