Spec-Zone .ru
спецификации, руководства, описания, API
|
The java.util.concurrent
package includes a number of additions to the Java Collections Framework. These are most easily categorized by the collection interfaces provided:
BlockingQueue
defines a first-in-first-out data structure that blocks or times out when you attempt to add to a full queue, or retrieve from an empty queue.ConcurrentMap
java.util.Map
ConcurrentMap
is
ConcurrentHashMap
HashMap
ConcurrentNavigableMap
ConcurrentMap
that supports approximate matches. The standard general-purpose implementation of ConcurrentNavigableMap
is
ConcurrentSkipListMap
TreeMap
All of these collections help avoid Memory Consistency Errors by defining a happens-before relationship between an operation that adds an object to the collection with subsequent operations that access or remove that object.