WindowUpdateVisitor Class — netty Architecture
Architecture documentation for the WindowUpdateVisitor class in DefaultHttp2LocalFlowController.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d776505f_4b49_6e66_ce7e_73c3ba1cd55e["WindowUpdateVisitor"] 40872612_d507_c116_2a45_f6a7304d70c3["DefaultHttp2LocalFlowController.java"] d776505f_4b49_6e66_ce7e_73c3ba1cd55e -->|defined in| 40872612_d507_c116_2a45_f6a7304d70c3 1efd6394_c047_bdde_7bd6_1b52e7dd63cb["WindowUpdateVisitor()"] d776505f_4b49_6e66_ce7e_73c3ba1cd55e -->|method| 1efd6394_c047_bdde_7bd6_1b52e7dd63cb 1ff15d77_9d01_c5e6_825b_147496007ae5["visit()"] d776505f_4b49_6e66_ce7e_73c3ba1cd55e -->|method| 1ff15d77_9d01_c5e6_825b_147496007ae5 71a5f350_1d3e_7ed2_4e49_7e32ddef1b62["throwIfError()"] d776505f_4b49_6e66_ce7e_73c3ba1cd55e -->|method| 71a5f350_1d3e_7ed2_4e49_7e32ddef1b62
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java lines 616–645
private final class WindowUpdateVisitor implements Http2StreamVisitor {
private CompositeStreamException compositeException;
private final int delta;
WindowUpdateVisitor(int delta) {
this.delta = delta;
}
@Override
public boolean visit(Http2Stream stream) throws Http2Exception {
try {
// Increment flow control window first so state will be consistent if overflow is detected.
FlowState state = state(stream);
state.incrementFlowControlWindows(delta);
state.incrementInitialStreamWindow(delta);
} catch (StreamException e) {
if (compositeException == null) {
compositeException = new CompositeStreamException(e.error(), 4);
}
compositeException.add(e);
}
return true;
}
public void throwIfError() throws CompositeStreamException {
if (compositeException != null) {
throw compositeException;
}
}
}
Defined In
Source
Frequently Asked Questions
What is the WindowUpdateVisitor class?
WindowUpdateVisitor is a class in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java.
Where is WindowUpdateVisitor defined?
WindowUpdateVisitor is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2LocalFlowController.java at line 616.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free