FlowControlledFrameSizeEstimator Class — netty Architecture
Architecture documentation for the FlowControlledFrameSizeEstimator class in AbstractHttp2StreamChannel.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 128181cb_51b4_4260_bdb0_e015fba2ed60["FlowControlledFrameSizeEstimator"] 53b73d84_de3f_a5ff_9f0d_ff98834dbbb4["AbstractHttp2StreamChannel.java"] 128181cb_51b4_4260_bdb0_e015fba2ed60 -->|defined in| 53b73d84_de3f_a5ff_9f0d_ff98834dbbb4 5407f1a7_7c1f_06c0_e876_74d884a7d826["Handle()"] 128181cb_51b4_4260_bdb0_e015fba2ed60 -->|method| 5407f1a7_7c1f_06c0_e876_74d884a7d826
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java lines 119–137
private static final class FlowControlledFrameSizeEstimator implements MessageSizeEstimator {
static final FlowControlledFrameSizeEstimator INSTANCE = new FlowControlledFrameSizeEstimator();
private static final Handle HANDLE_INSTANCE = new Handle() {
@Override
public int size(Object msg) {
return msg instanceof Http2DataFrame ?
// Guard against overflow.
(int) min(Integer.MAX_VALUE, ((Http2DataFrame) msg).initialFlowControlledBytes() +
(long) MIN_HTTP2_FRAME_SIZE) : MIN_HTTP2_FRAME_SIZE;
}
};
@Override
public Handle newHandle() {
return HANDLE_INSTANCE;
}
}
Source
Frequently Asked Questions
What is the FlowControlledFrameSizeEstimator class?
FlowControlledFrameSizeEstimator is a class in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java.
Where is FlowControlledFrameSizeEstimator defined?
FlowControlledFrameSizeEstimator is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/AbstractHttp2StreamChannel.java at line 119.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free