Reputation: 103
I'm aware that Hazelcast has the functionality to add EntryListener to a map (IMap) that I am updating such that i receive messages based on activity to the whole map.
However I want to know if it is possible to add a listener to an individual key and its value. I.e. a listener to one entry of the map, not the whole map.
Thanks
Upvotes: 1
Views: 357
Reputation: 6094
You have two different options. You can register an MapListener to a specific key or you can define a Predicate.
IMap::addEntryListener(MapListener, Key, boolean)
IMap::addEntryListener(MapListener, Predicate, boolean)
Upvotes: 1