public virtual int drain (Collection<G> recipient, int amount = -1)
Drains the specified amount of elements from this queue in the specified recipient collection.
the recipient collection to drain the elements to
the amount of elements to drain
the amount of elements that were actually drained