K
- the type of keys being evictedV
- the type of values being evicted@Beta public interface MapEvictionListener<K,V>
An instance may be called concurrently by multiple threads to process different entries. Implementations of this interface should avoid performing blocking calls or synchronizing on shared resources.
Modifier and Type | Method and Description |
---|---|
void |
onEviction(K key,
V value)
Notifies the listener that an eviction has occurred.
|
void onEviction(@Nullable K key, @Nullable V value)
key
- the key of the entry that has already been evicted, or null
if its reference was collectedvalue
- the value of the entry that has already been evicted, or
null
if its reference was collectedCopyright © 2010-2012. All Rights Reserved.