Interface BlockingQueueFactory<E>

    • Method Detail

      • create

        BlockingQueue<E> create​(int capacity)
        Creates a new BlockingQueue with the specified maximum capacity. Note that not all implementations of BlockingQueue support a bounded capacity in which case the value is ignored.
        Parameters:
        capacity - maximum size of the queue if supported
        Returns:
        a new BlockingQueue