Blocking Queues can block when a certain size is reached or there are no elements to read
Blocking Queues can block when a certain size is reached or there are no elements to read. They have methods that return true if an element can be retrieved or other methods that can throw an exception if the element cannot be retrieved.
Please see description of these in Queues:
ArrayBlockingQueue
LinkedBlockingQueue
LinkedBlockingDeque
DelayQueue
PriorityBlocking Queue
SynchronousQueue
LinkedTransferQueue
Back: Data Structures
Page Author: JD