receiveFlowControlledFrame() — netty Function Reference
Architecture documentation for the receiveFlowControlledFrame() function in DefaultHttp2LocalFlowController.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 33746bc7_789f_d1be_3449_9bda9fc12cea["receiveFlowControlledFrame()"] 36ddda9f_3efd_b028_26eb_619b997ea963["DefaultHttp2LocalFlowController"] 33746bc7_789f_d1be_3449_9bda9fc12cea -->|defined in| 36ddda9f_3efd_b028_26eb_619b997ea963 fafdcd3b_e1ac_f571_9e49_4a4678015b65["isClosed()"] 33746bc7_789f_d1be_3449_9bda9fc12cea -->|calls| fafdcd3b_e1ac_f571_9e49_4a4678015b65 039e5f5a_d327_a52e_1d1d_c2a37cfcb39b["endOfStream()"] 33746bc7_789f_d1be_3449_9bda9fc12cea -->|calls| 039e5f5a_d327_a52e_1d1d_c2a37cfcb39b b0c71dc8_88a3_2cf1_3532_2d5523d0aa36["receiveFlowControlledFrame()"] 33746bc7_789f_d1be_3449_9bda9fc12cea -->|calls| b0c71dc8_88a3_2cf1_3532_2d5523d0aa36 a8ec61e3_3bd1_b8ce_6ec2_534b49608d0a["consumeBytes()"] 33746bc7_789f_d1be_3449_9bda9fc12cea -->|calls| a8ec61e3_3bd1_b8ce_6ec2_534b49608d0a style 33746bc7_789f_d1be_3449_9bda9fc12cea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java lines 263–282
@Override
public void receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding,
boolean endOfStream) throws Http2Exception {
assert ctx != null && ctx.executor().inEventLoop();
int dataLength = data.readableBytes() + padding;
// Apply the connection-level flow control
FlowState connectionState = connectionState();
connectionState.receiveFlowControlledFrame(dataLength);
if (stream != null && !isClosed(stream)) {
// Apply the stream-level flow control
FlowState state = state(stream);
state.endOfStream(endOfStream);
state.receiveFlowControlledFrame(dataLength);
} else if (dataLength > 0) {
// Immediately consume the bytes for the connection window.
connectionState.consumeBytes(dataLength);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does receiveFlowControlledFrame() do?
receiveFlowControlledFrame() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java.
Where is receiveFlowControlledFrame() defined?
receiveFlowControlledFrame() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java at line 263.
What does receiveFlowControlledFrame() call?
receiveFlowControlledFrame() calls 4 function(s): consumeBytes, endOfStream, isClosed, receiveFlowControlledFrame.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free