|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
K - the type of keys being evictedV - the type of values being evictedMapMaker.RemovalListener This class is scheduled
for deletion from Guava in Guava release 11.0.
@Beta @Deprecated public interface MapEvictionListener<K,V>
An object that can receive a notification when an entry is evicted from a map.
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.
| Method Summary | |
|---|---|
void |
onEviction(K key,
V value)
Deprecated. Notifies the listener that an eviction has occurred. |
| Method Detail |
|---|
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 collected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||