Java.util.concurrent Queues
Jump to navigation
Jump to search
Internal
Overview
Blocking Queue
External: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/BlockingQueue.html
java.util.concurrent.BlockingQueue<E> is a java.util.Queue that offers 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. When configured with a fixed size (example ArrayBlockingQueue, it can be used as a memory sprawl control mechanisms, providing memory-safe separation between threads.