Interface ConcurrentQueue<E>

    • Method Detail

      • size

        int size()
        This method may be O(n) or O(1) and may not be accurate.
        Returns:
        the number of elements in the queue
      • capacity

        int capacity()
        Returns:
        the maximum number of elements that can fit in this queue, or -1 if unbounded.