K
- the most general type of keys this listener can listen for; for example Object
if any key is acceptableV
- the most general type of values this listener can listen for; for example Object
if any key is acceptable@GwtCompatible @FunctionalInterface public interface RemovalListener<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 |
onRemoval(RemovalNotification<K,V> notification)
Notifies the listener that a removal occurred at some point in the past.
|
void onRemoval(RemovalNotification<K,V> notification)
This does not always signify that the key is now absent from the cache, as it may have already been re-added.
Copyright © 2010–2018. All rights reserved.