Class QueueCursor<E>

    • Constructor Detail

      • QueueCursor

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

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