public final int drainTo ( int queueIndex , Collection < ? super E > drain ) { return drain ( queues [ queueIndex ] , drain , Integer . MAX_VALUE ) ; }
Drains a batch of items from the queue at the supplied index into the supplied collection .