Java ConcurrentLinkedQueue.iterator() is a method in the Java ConcurrentLinkedQueue class that returns an iterator over the elements of the queue. The iterator provides a weakly consistent view of the queue, allowing traversal even as the queue is concurrently modified. Introduced in Java 2004 with Java 5, iterator() is frequently used in multi-threaded environments for safe, non-blocking iteration.
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html