BlockingQueue In Java

November 13, 2015 by Sandeep Bhardwaj | Tags:


public interface BlockingQueue extends Queue

A BlockingQueue provides additionally functionality

  • wait for the queue to become non-empty when retrieving an element.
  • wait for space to become available in the queue when storing an element.

Implementing Classes:

There are 7 implemented classed of BlockingQueue

  1. ArrayBlockingQueue
  2. DelayQueue
  3. ArrayBlockingQueue
  4. LinkedBlockingDeque
  5. LinkedTransferQueue
  6. PriorityBlockingQueue
  7. SynchronousQueue