com.google.common.collect
Class EvictionListeners

java.lang.Object
  extended by com.google.common.collect.EvictionListeners

@Beta
public final class EvictionListeners
extends Object

A collection of common eviction listeners.

Since:
7
Author:
Charles Fry

Method Summary
static
<K,V> MapEvictionListener<K,V>
asynchronous(MapEvictionListener<K,V> listener, Executor executor)
          Returns an asynchronous MapEvictionListener which processes all eviction notifications asynchronously, using executor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asynchronous

public static <K,V> MapEvictionListener<K,V> asynchronous(MapEvictionListener<K,V> listener,
                                                          Executor executor)
Returns an asynchronous MapEvictionListener which processes all eviction notifications asynchronously, using executor.

Parameters:
listener - the backing listener
executor - the executor with which eviciton notifications are asynchronously executed