![](../icons/HazelcastLogo_Dark_200w.jpg) | EntryExpiredListenerTKey, TValue Interface |
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.2
Syntaxpublic interface EntryExpiredListener<TKey, TValue> : MapListener,
IEventListener
Public Interface EntryExpiredListener(Of TKey, TValue)
Inherits MapListener, IEventListener
generic<typename TKey, typename TValue>
public interface class EntryExpiredListener : MapListener,
IEventListener
type EntryExpiredListener<'TKey, 'TValue> =
interface
interface MapListener
interface IEventListener
end
Type Parameters
- TKey
- TValue
The EntryExpiredListenerTKey, TValue type exposes the following members.
Methods
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