문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top