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 2670bb4aae
commit 06823e3aff

View File

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