Java Concurrent Collection

Category: Java   Tags: Java, Java Thread, Java MultiThread, Thread Synchronization, Immutable Objects, Java Concurrent Collection

java.util.concurrent package contains a number of concurrent collections that can be categorized by below collection interfaces:

BlockingQueue
A first-in-first-out data structure that will block or time out if you try to add to a full queue, or retrieve from an empty queue.
ConcurrentMap
A a subinterface of java.util.Map supporting atomic operations. All methods that modifies the map are atomic operations, therefore no explicit synchronization is required.

ConcurrentHashMap is one general purpose implementation of ConcurrentMap.

ConcurrentNavigableMap
A a subinterface of ConcurrentMap supporting approximate matches. All methods that modifies the map are atomic operations, therefore no explicit synchronization is required.

ConcurrentSkipListMap is one general purpose implementation of ConcurrentNavigableMap.