Interface EvictionListener<K,V>


public interface EvictionListener<K,V>
Listener interface used to monitor eviction in off-heap caches.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called prior to the eviction of a cache mapping.
  • Method Details

    • evicting

      void evicting(Callable<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