com.hazelcast.map.listener

## Interface EntryExpiredListener<K,V>

- Type Parameters:
    `K` - the type of key.
    `V` - the type of value.
  All Superinterfaces:
    EventListener, MapListener

      public interface EntryExpiredListener<K,V>
      extends MapListener

  Listener which is notified after removal of an entry due to the expiration-based-eviction. There are two sources of expiration based eviction, they are max-idle-seconds and time-to-live-seconds. 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.6
  See Also:
    `EntryEvictedListener`

- - ### Method Summary

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

- - ### Method Detail

    - #### entryExpired

          void entryExpired(EntryEvent<K,V> event)

      Invoked upon expiration of an entry.
      Parameters:
        `event` - the event invoked when an entry is expired.

Copyright © 2018. All rights reserved.