Interface EvictionListener<K,V>
-
public interface EvictionListener<K,V>Listener interface used to monitor eviction in off-heap caches.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidevicting(java.util.concurrent.Callable<java.util.Map.Entry<K,V>> callable)Called prior to the eviction of a cache mapping.
-
-
-
Method Detail
-
evicting
void evicting(java.util.concurrent.Callable<java.util.Map.Entry<K,V>> callable)
Called prior to the eviction of a cache mapping.Implementors must be careful to not expose the callable outside the scope of this method. The behavior of the callable becomes undefined on return from this method.
- Parameters:
callable- callable for retrieving the evictee
-
-