method

max=

max=(p1)
public

Sets the maximum size of the queue to the given number.