Class QueueIteration<E,​T extends RuntimeException>

    • Constructor Detail

      • QueueIteration

        protected QueueIteration​(int capacity)
        Creates an QueueIteration with the given (fixed) capacity and default access policy.
        Parameters:
        capacity - the capacity of this queue
      • QueueIteration

        protected QueueIteration​(int capacity,
                                 boolean fair)
        Creates an QueueIteration with the given (fixed) capacity and the specified access policy.
        Parameters:
        capacity - the capacity of this queue
        fair - if true then queue accesses for threads blocked on insertion or removal, are processed in FIFO order; if false the access order is unspecified.
      • QueueIteration

        protected QueueIteration​(BlockingQueue<E> queue)
        Creates an QueueIteration with the given BlockingQueue as its backing queue.
        It may not be threadsafe to modify or access the given BlockingQueue from other locations. This method only enables the default ArrayBlockingQueue to be overridden.
        Parameters:
        queue - A BlockingQueue that is not used in other locations, but will be used as the backing Queue implementation for this cursor.