private void drainTo(int slot, int iter, Queue<Object> out) {
        int cnt = counts[slot];
        Entry entry = slots[slot];
        for (int i = 0; i < cnt; i++) {
            Entry next = entry.next;
            if (entry.iter == iter) {
                linkOut(entry);
                out.add(entry.payload);
            }
            entry = next;
        }
    }
@author <a href="mailto:havardpe@yahoo-inc.com">Haavard Pettersen</a>
@author Simon Thoresen Hult
jdisc_core/src/main/java/com/yahoo/jdisc/core/ScheduledQueue.java