public PriorityBlockingQueue (int initialCapacity)

Creates a PriorityBlockingQueue with the specified initial capacity that orders its elements according to their natural ordering.

Parameters:
initialCapacity    the initial capacity for this priority queue

Exceptions:
IllegalArgumentException    if initialCapacity is less than 1