AutoRefillState Class — netty Architecture
Architecture documentation for the AutoRefillState class in DefaultHttp2LocalFlowController.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 993ab7c0_2940_82d7_97e3_6b945878d790["AutoRefillState"] 40872612_d507_c116_2a45_f6a7304d70c3["DefaultHttp2LocalFlowController.java"] 993ab7c0_2940_82d7_97e3_6b945878d790 -->|defined in| 40872612_d507_c116_2a45_f6a7304d70c3 7ab05c26_d729_82b5_dda4_b1ef79ae7418["AutoRefillState()"] 993ab7c0_2940_82d7_97e3_6b945878d790 -->|method| 7ab05c26_d729_82b5_dda4_b1ef79ae7418 b0c71dc8_88a3_2cf1_3532_2d5523d0aa36["receiveFlowControlledFrame()"] 993ab7c0_2940_82d7_97e3_6b945878d790 -->|method| b0c71dc8_88a3_2cf1_3532_2d5523d0aa36 f4c95244_1846_846a_1a99_5dd7ca1550e4["consumeBytes()"] 993ab7c0_2940_82d7_97e3_6b945878d790 -->|method| f4c95244_1846_846a_1a99_5dd7ca1550e4
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java lines 300–317
private final class AutoRefillState extends DefaultState {
AutoRefillState(Http2Stream stream, int initialWindowSize) {
super(stream, initialWindowSize);
}
@Override
public void receiveFlowControlledFrame(int dataLength) throws Http2Exception {
super.receiveFlowControlledFrame(dataLength);
// Need to call the super to consume the bytes, since this.consumeBytes does nothing.
super.consumeBytes(dataLength);
}
@Override
public boolean consumeBytes(int numBytes) throws Http2Exception {
// Do nothing, since the bytes are already consumed upon receiving the data.
return false;
}
}
Defined In
Source
Frequently Asked Questions
What is the AutoRefillState class?
AutoRefillState is a class in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java.
Where is AutoRefillState defined?
AutoRefillState is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java at line 300.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free