619620621622623624625626627628629
if (remaining == 0) { // Zero-sized buffer means the internal message // delimiter. s.increaseScheduledWriteMessages(); } else { s.increaseScheduledWriteBytes(remaining); } } else { s.increaseScheduledWriteMessages(); }
610611612613614615616617618619620
613614615616617618619620621622623
735736737738739740741742743744745
// the buffer will be specified with messageSent event. buffer.mark(); int remaining = buffer.remaining(); if (remaining > 0) { s.increaseScheduledWriteBytes(remaining); } } else { s.increaseScheduledWriteMessages(); }
640641642643644645646647648649650
if (remaining == 0) { // Zero-sized buffer means the internal message // delimiter. s.increaseScheduledWriteMessages(); } else { s.increaseScheduledWriteBytes(buffer.remaining()); } } else { s.increaseScheduledWriteMessages(); }
586587588589590591592593594595596
618619620621622623624625626627628