ChannelOutboundBuffer returns total pending write size
total pending write size may be used to optimize write batching
This commit is contained in:
parent
2670bb4aae
commit
06823e3aff
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user