Listener which is notified after removal of an entry due to the expiration-based-eviction.
Namespace: Hazelcast.CoreAssembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.1
public 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.
| Name | Description |
---|
 | EntryExpired |
Invoked upon expiration of an entry.
|
Top
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.
Reference