Question

Assume that I've implemented storage & loading interfaces and concurrent requests arrived for a key that is not present in the map.

Does Hazelcast ensure that the loader will be called only once for these concurrent requests on the same key OR do I have to handle that case in my loader implementation?

Était-ce utile?

La solution

No need for external locks. Map operations are atomic including mapstore operations.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top