Uses of Interface
com.google.common.cache.RemovalListener
Packages that use RemovalListener
-
Uses of RemovalListener in com.google.common.cache
Classes in com.google.common.cache that implement RemovalListenerFields in com.google.common.cache declared as RemovalListenerModifier and TypeFieldDescription(package private) RemovalListener<? super K, ? super V> CacheBuilder.removalListener(package private) final RemovalListener<? super K, ? super V> LocalCache.ManualSerializationProxy.removalListener(package private) final RemovalListener<K, V> LocalCache.removalListenerA 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 RemovalListenerModifier and TypeMethodDescriptionstatic <K,V> RemovalListener <K, V> RemovalListeners.asynchronous(RemovalListener<K, V> listener, Executor executor) Returns aRemovalListenerwhich 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 RemovalListenerModifier and TypeMethodDescriptionstatic <K,V> RemovalListener <K, V> RemovalListeners.asynchronous(RemovalListener<K, V> listener, Executor executor) Returns aRemovalListenerwhich 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 RemovalListenerModifierConstructorDescriptionprivateManualSerializationProxy(LocalCache.Strength keyStrength, LocalCache.Strength valueStrength, Equivalence<Object> keyEquivalence, Equivalence<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)