Object
if any key is acceptable
Object if any value is acceptable
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 |
|---|---|
| public void | onRemoval(@Nullable K
the key represented by this entry, or key, @Nullable V null if collectedthe value represented by this entry, or value, RemovalCause null if collectedthe reason for which the entry was removed cause)Notifies the listener that a removal occurred at some point in the past. |
| onRemoval | back to summary |
|---|---|
| public void onRemoval(@Nullable K key, @Nullable V value, RemovalCause cause) Notifies the listener that a removal occurred at some point in the past. This does not always signify that the key is now absent from the cache, as it may have already been re-added.
| |