February 2014
Beginner
1248 pages
62h 25m
English
• ArrayBlockingQueue (p. 984) is a fully implemented buffer class from package java.util.concurrent that implements the BlockingQueue interface.
• An ArrayBlockingQueue can implement a shared buffer in a producer/consumer relationship. Method put (p. 984) places an element at the end of the BlockingQueue, waiting if the queue is full. Method take (p. 984) removes an element from the head of the BlockingQueue, waiting if the queue is empty.
• ArrayBlockingQueue stores shared mutable data in an array that’s sized with an argument passed to the constructor. Once created, an ArrayBlockingQueue is fixed in size.
Read now
Unlock full access