Class QueueIteration<E,​T extends Exception>

    • Constructor Detail

      • QueueIteration

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

        @Deprecated(since="4.1.2",
                    forRemoval=true)
        protected QueueIteration​(int capacity,
                                 WeakReference<?> callerRef)
        Deprecated, for removal: This API element is subject to removal in a future version.
        WeakReference is no longer supported as a way to automatically close this iteration. The recommended approach to automatically closing an iteration on garbage collection is to use a Cleaner.
        Creates an QueueIteration with the given (fixed) capacity and default access policy.
        Parameters:
        capacity - the capacity of this queue
      • QueueIteration

        @Deprecated(since="4.1.2",
                    forRemoval=true)
        protected QueueIteration​(int capacity,
                                 boolean fair,
                                 WeakReference<?> callerRef)
        Deprecated, for removal: This API element is subject to removal in a future version.
        WeakReference is no longer supported as a way to automatically close this iteration. The recommended approach to automatically closing an iteration on garbage collection is to use a Cleaner.
        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​(int capacity,
                                 boolean fair)
        Deprecated.
        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

        @Deprecated(since="4.1.2",
                    forRemoval=true)
        protected QueueIteration​(BlockingQueue<E> queue,
                                 WeakReference<?> callerRef)
        Deprecated, for removal: This API element is subject to removal in a future version.
        WeakReference is no longer supported as a way to automatically close this iteration. The recommended approach to automatically closing an iteration on garbage collection is to use a Cleaner.
        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.
      • QueueIteration

        protected QueueIteration​(BlockingQueue<E> queue)
        Deprecated.
        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.