Class LinkedQueue<E>


  • public class LinkedQueue<E>
    extends java.lang.Object
    Non locked based linked queue.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  LinkedQueue.Node<E>  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.atomic.AtomicReference<LinkedQueue.Node<E>> head  
      private java.util.concurrent.atomic.AtomicReference<LinkedQueue.Node<E>> tail  
    • Constructor Summary

      Constructors 
      Constructor Description
      LinkedQueue()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<E> elements()  
      boolean put​(E item)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinkedQueue

        public LinkedQueue()
    • Method Detail

      • put

        public boolean put​(E item)
      • elements

        public java.util.Iterator<E> elements()