Java / Collections
What is BlockingQueue in Java collections?
BlockingQueue implements java.util.Queue interface. BlockingQueue supports operations that wait for the queue to become non-empty when retrieving an element , and wait for space to become available in the queue when storing an element .
BlockingQueue does not accept null elements and it's implementations are thread-safe. Blocking queues are primarily designed for the producer-consumer problems. This concurrent Collection class was added in jdk 1.5.
More Related questions...