Is the ConcurrentHashMap.putAll (Map) method a putative atom?
I cannot find it in the documentation and it is not mentioned in the ConcurrentMap interface, so I think the answer is no. I ask him to be sure, because it would not make sense if this operation was not atomic, to be honest.
If it is not atomic, what would be the best way to support atomic inserts of several elements? Back to the good old sync?
java atomic concurrenthashmap
Japer D.
source share