ChannelOutboundBuffer returns total pending write size

total pending write size may be used to optimize write batching
This commit is contained in:
milenkovicm 2014-01-03 16:16:12 +00:00 committed by Norman Maurer
parent b9bbded84e
commit 393f7b2306

View File

@ -545,6 +545,10 @@ public final class ChannelOutboundBuffer {
RECYCLER.recycle(this, handle);
}
public long totalPendingWriteBytes() {
return this.totalPendingSize;
}
private static final class Entry {
Object msg;
ByteBuffer[] buffers;