Search code examples
hazelcast

Get property name of changed item - Hazelcast


Are there any listener in IMap which allow to get the name of the property which has been changed?

For example: I have a map [{Key}, {"foo":"exampleFoo", "bar":"exampleBar"}], if something change in foo value, is there a way to get the name of the property?

Thanks for your support.


Solution

  • You can check the entry value by using entryEvent.getValue() in the EntryEvent parameter. Please remember to set includeValue parameter to true when you are adding the listener.