Uses of Interface
com.google.common.cache.RemovalListener
Packages that use RemovalListener
-
Uses of RemovalListener in com.google.common.cache
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 aRemovalListener
which processes all eviction notifications usingexecutor
.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 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.