bytesBeforeWritable() — netty Function Reference
Architecture documentation for the bytesBeforeWritable() function in AbstractHttp2StreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c155f631_2d25_28f0_4933_605d4014f8d1["bytesBeforeWritable()"] bcb58015_0c85_17e2_f1b3_0c1ad3aaa388["AbstractHttp2StreamChannel"] c155f631_2d25_28f0_4933_605d4014f8d1 -->|defined in| bcb58015_0c85_17e2_f1b3_0c1ad3aaa388 6bdfa940_bc40_cf8b_d070_a835a7f43634["isWritable()"] c155f631_2d25_28f0_4933_605d4014f8d1 -->|calls| 6bdfa940_bc40_cf8b_d070_a835a7f43634 style c155f631_2d25_28f0_4933_605d4014f8d1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java lines 421–429
@Override
public long bytesBeforeWritable() {
// +1 because writability doesn't change until the threshold is crossed (not equal to).
long bytes = totalPendingSize - config().getWriteBufferLowWaterMark() + 1;
// If bytes is negative we know we are writable, but if bytes is non-negative we have to check writability.
// Note that totalPendingSize and isWritable() use different volatile variables that are not synchronized
// together. totalPendingSize will be updated before isWritable().
return bytes <= 0 || isWritable() ? 0 : bytes;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does bytesBeforeWritable() do?
bytesBeforeWritable() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java.
Where is bytesBeforeWritable() defined?
bytesBeforeWritable() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java at line 421.
What does bytesBeforeWritable() call?
bytesBeforeWritable() calls 1 function(s): isWritable.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free