Dequeue only the number of messages that can be processed immediately.