- Type Parameters:
K- the type of key.
V- the type of value.
- All Known Subinterfaces:
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface EntryEvictedListener<K,V> extends MapListener
Invoked upon eviction of an entry. Implementations of this interface receive events after removal of the entry. Removals can be caused by one of size-based-eviction, time-to-live based expiration or max-idle-seconds based expiration. Note that if your listener implements both
EntryEvictedListenertogether, there is a probability that the listener may receive both expiration and eviction events for the same entry. This is because, size-based-eviction removes entries regardless of whether entries expired or not.
- See Also:
Invoked upon eviction of an entry.
event- the event invoked when an entry is evicted