Package org.apache.jackrabbit.oak.cache
Interface CacheLIRS.EvictionCallback<K,V>
-
- Type Parameters:
K
- type of the keyV
- type of the value
@Deprecated(since="2022-12-01") public static interface CacheLIRS.EvictionCallback<K,V>
Deprecated.The Jackrabbit Oak Cache library is designed for Oak-internal use only and thus deprecated. It will not be part of the AEM SDK after April 2023.Listener for items that are evicted from the cache. The listener is called for both, resident and non-resident items. In the latter case the passed value isnull
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
evicted(K key, V value, @NotNull org.apache.jackrabbit.guava.common.cache.RemovalCause cause)
Deprecated.Indicates eviction of an item.
-
-
-
Method Detail
-
evicted
void evicted(@NotNull K key, @Nullable V value, @NotNull @NotNull org.apache.jackrabbit.guava.common.cache.RemovalCause cause)
Deprecated.Indicates eviction of an item.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).
- Parameters:
key
- the evicted item's keyvalue
- the evicted item's value ornull
if non-residentcause
- the cause of the eviction
-
-