Top Description Constructors Methods
com.google.common.cache

public final Class RemovalListeners

extends Object
Class Inheritance
Annotations
@GwtIncompatible
@ElementTypesAreNonnullByDefault
Static Imports
com.google.common.base.Preconditions.checkNotNull

A collection of common removal listeners.
Author
Charles Fry
Since
10.0

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <K, V> RemovalListener<K, V>
asynchronous(RemovalListener<K, V>
the backing listener
listener
,
Executor
the executor with which removal notifications are asynchronously executed
executor
)

Returns a RemovalListener which processes all eviction notifications using executor.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RemovalListenersback to summary
private RemovalListeners()

Method Detail

asynchronousback to summary
public static <K, V> RemovalListener<K, V> asynchronous(RemovalListener<K, V> listener, Executor executor)

Returns a RemovalListener which processes all eviction notifications using executor.

Parameters
listener:RemovalListener<K, V>

the backing listener

executor:Executor

the executor with which removal notifications are asynchronously executed