The java.util.concurrent.LinkedBlockingQueue.poll() method is used to retrieve and remove the head element of this queue, or returns null if the queue is empty. It operates in constant time. This method is different from the remove() method as it returns null when the queue is empty, while the remove() method throws an exception.
Java LinkedBlockingQueue.poll - 30 examples found. These are the top rated real world Java examples of java.util.concurrent.LinkedBlockingQueue.poll extracted from open source projects. You can rate examples to help us improve the quality of examples.