Skip to Main Content

Integration

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

Coherence ConcurrentMap methods thread safety

3613332Jan 4 2018 — edited Jan 8 2018

Hi!

My questions are:

1. Are put() and other mutating methods of ConcurrentMapimplementations have to be atomic? Do we always have to call put() under lock or only if it is a part of compound transaction? Documentation is not clear about it.

2. If I have two identical instances of the same key class, are they considered the same key by lock() or they are locked on independently?

I will appreciate if links are provided.

Thanks,

Boris

This post has been answered by Mfalco-Oracle on Jan 5 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2018
Added on Jan 4 2018
5 comments
166 views