Package org.infinispan.commons.util
Interface EvictionListener<K,V>
-
public interface EvictionListener<K,V>Eviction listener that is notified when entries are evicted from the underlying container due to the given eviction policy.- Since:
- 9.0
- Author:
- wburns
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEntryActivated(java.lang.Object key)Called back when an entry has been activatedvoidonEntryChosenForEviction(java.util.Map.Entry<K,V> entry)Called back before an entry is evictedvoidonEntryEviction(java.util.Map<K,V> evicted)Called back after entries have been evictedvoidonEntryRemoved(java.util.Map.Entry<K,V> entry)Called when an entry is specifically removed from the container.
-
-
-
Method Detail
-
onEntryEviction
void onEntryEviction(java.util.Map<K,V> evicted)
Called back after entries have been evicted- Parameters:
evicted-
-
onEntryChosenForEviction
void onEntryChosenForEviction(java.util.Map.Entry<K,V> entry)
Called back before an entry is evicted- Parameters:
entry-
-
onEntryActivated
void onEntryActivated(java.lang.Object key)
Called back when an entry has been activated- Parameters:
key-
-
-