K
- type of the keyV
- type of the valuepublic static interface CacheLIRS.EvictionCallback<K,V>
null
.Modifier and Type | Method and Description |
---|---|
void |
evicted(K key,
V value,
@NotNull com.google.common.cache.RemovalCause cause)
Indicates eviction of an item.
|
void evicted(@NotNull K key, @Nullable V value, @NotNull @NotNull com.google.common.cache.RemovalCause cause)
Note: It is not safe to call any of CacheLIRS
's
method from withing this callback. Any such call might result in
undefined behaviour and Java level deadlocks.
The method may be called twice for the same key (first if the entry is resident, and later if the entry is non-resident).
key
- the evicted item's keyvalue
- the evicted item's value or null
if non-residentcause
- the cause of the evictionCopyright © 2010 - 2020 Adobe. All Rights Reserved