Java ConcurrentLinkedQueue.poll()

Java ConcurrentLinkedQueue.poll() is a method in the Java ConcurrentLinkedQueue class that retrieves and removes the head of the queue, or returns null if the queue is empty. It is non-blocking and thread-safe, making it suitable for use in multi-threaded applications. Introduced in Java 2004 with Java 5, poll() is commonly used in producer-consumer scenarios where thread-safe, non-blocking removal of elements from a queue is required.

https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html