My Tech Notes
Search This Blog
Showing posts with label
concurrency
.
Show all posts
Showing posts with label
concurrency
.
Show all posts
Concurrent set in java
There is no ConcurrentHashSet class in java but you can get a concurrent set from a ConcurrentHashMap using the following method:
Set
set = Collections.newSetFromMap(new ConcurrentHashMap
());
See also
Why there is no ConcurrentHashSet against ConcurrentHashMap
Collections.netSetFromMap()
Older Posts
Home
Subscribe to:
Posts (Atom)