Class SimpleFIFOQueue

    • Constructor Detail

      • SimpleFIFOQueue

        public SimpleFIFOQueue()
    • Method Detail

      • enqueue

        public boolean enqueue​(Object obj)
        Description copied from interface: ISimpleFIFOQueue
        Enqueue given object. Blocks until enqueue is completed.
        Specified by:
        enqueue in interface ISimpleFIFOQueue
        obj - the Object to enqueue
        true if enqueued, false if not successfully enqueue
      • peekQueue

        public Object peekQueue()
        Specified by:
        peekQueue in interface ISimpleFIFOQueue
        Object at head of queue without removing it from queue
      • peekQueue

        public Object peekQueue​(long waitMS)
      • removeHead

        public Object removeHead()
        Specified by:
        removeHead in interface ISimpleFIFOQueue
        Object that is head of queue. Removes head from queue
      • isEmpty

        public boolean isEmpty()
      • stop

        public void stop()
      • isStopped

        public boolean isStopped()
      • size

        public int size()
      • flush

        public Object[] flush()
      • close

        public void close()
        Description copied from interface: ISimpleFIFOQueue
        Close this queue. Once closed, the underlying queue cannot be used again
        Specified by:
        close in interface ISimpleFIFOQueue