Class Synchronized.SynchronizedQueue<E>

    • Constructor Detail

      • SynchronizedQueue

        SynchronizedQueue​(java.util.Queue<E> delegate,
                          java.lang.Object mutex)
    • Method Detail

      • element

        public E element()
        Specified by:
        element in interface java.util.Queue<E>
      • offer

        public boolean offer​(E e)
        Specified by:
        offer in interface java.util.Queue<E>
      • peek

        public E peek()
        Specified by:
        peek in interface java.util.Queue<E>
      • poll

        public E poll()
        Specified by:
        poll in interface java.util.Queue<E>
      • remove

        public E remove()
        Specified by:
        remove in interface java.util.Queue<E>