user2959437
user2959437

Reputation: 5

Hazelcast : How to get notified when item expires on map

In hazelcast is it possible to get Async. notified when item expired on the Cache Map. In EhCache they have this feature via [1]

[1] http://ehcache.org/documentation/apis/cache-event-listeners

-Malinga

Upvotes: 0

Views: 2856

Answers (2)

magiccrafter
magiccrafter

Reputation: 5474

Starting in Hazelcast 3.6, expiry events are differentiated from eviction events. Expiry is the event only fired in case of expiration due to ttl (time-to-live seconds) where entries can be evicted because of size constraints (eviction event).

Check the documentation for EntryExpiredListener

More infor here: https://github.com/hazelcast/hazelcast/issues/6311

Upvotes: 1

noctarius
noctarius

Reputation: 6094

Are you asking about EntryListener::entryEvicted?

Upvotes: 1

Related Questions