org.terracotta.offheapstore.eviction
Interface EvictionListener<K,V>


public interface EvictionListener<K,V>

Listener interface used to monitor eviction in off-heap caches.

Author:
Chris Dennis

Method Summary
 void evicting(Callable<Map.Entry<K,V>> callable)
          Called prior to the eviction of a cache mapping.
 

Method Detail

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


Copyright © 2016. All rights reserved.