queue.getBuffer().readWait(timeUnit, timeout, markedOutputStream, queue.getBufferColor(),
new MultiMessageFilter());
markedOutputStream.flush();
if (markedOutputStream.dataWasWritten() && markedOutputStream.getBytesWritten() > 2) {
queue.resetMessageCount();
return true;
}
}
catch (BufferOverflowException e) {