2

I have a multi-node hazelcast cluster. I need to ensure that when a new value is inserted into a map, only one entrylistener/map store gets invoked. Unless I am having a brain freeze, hazelcast does not do that by default (It would be great if I was wrong about this). Besides using distributed locks (I do not wish to avoid using listeners/map stores on other nodes), are there any other suggestions to ensure that only one listener/map store ends up executing code.

Thanks

1 Answer 1

3

After a put only the node owns the key executes the map store operation. After a put only the ones which have added itself as listener to a map will receive event.

1
  • 2
    thanks for your feedback. Are you referring to entryListener or localEntryListener?
    – ali haider
    Feb 6, 2013 at 22:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.