BlockingQueue In Java
November 13, 2015 by Sandeep Bhardwaj | Tags: Concurrency
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
- ArrayBlockingQueue
- DelayQueue
- ArrayBlockingQueue
- LinkedBlockingDeque
- LinkedTransferQueue
- PriorityBlockingQueue
- SynchronousQueue