com.google.common.collect
Class EvictionListeners
java.lang.Object
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
|
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 |
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 listenerexecutor
- the executor with which eviciton notifications are
asynchronously executed
Copyright © 2010-2011. All Rights Reserved.