EntryExpiredListenerTKey, TValue InterfaceHazelcast .Net Client Class Library
Listener which is notified after removal of an entry due to the expiration-based-eviction.

Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.1
Syntax

public interface EntryExpiredListener<TKey, TValue> : MapListener, 
	IEventListener

Type Parameters

TKey
TValue

The EntryExpiredListenerTKey, TValue type exposes the following members.

Methods

  NameDescription
Public methodEntryExpired
Invoked upon expiration of an entry.
Top
Remarks

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.
See Also

Reference