com.hazelcast.map.listener

## Interface EntryEvictedListener<K,V>

- Type Parameters:
    `K` - the type of key.
    `V` - the type of value.
  All Superinterfaces:
    EventListener, MapListener
  All Known Subinterfaces:
    EntryListener<K,V>
  All Known Implementing Classes:
    ClientConsoleApp, ConsoleApp, EntryAdapter, EntryListenerConfig.MapListenerToEntryListenerAdapter

      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 `EntryExpiredListener` and `EntryEvictedListener` together, 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.
  Since:
    3.5
  See Also:
    `EntryExpiredListener`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `entryEvicted(EntryEvent<K,V> event)` Invoked upon eviction of an entry.

- - ### Method Detail

    - #### entryEvicted

          void entryEvicted(EntryEvent<K,V> event)

      Invoked upon eviction of an entry.
      Parameters:
        `event` - the event invoked when an entry is evicted

Copyright © 2019. All rights reserved.