merge() — netty Function Reference
Architecture documentation for the merge() function in DefaultHttp2RemoteFlowControllerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 00fd93b0_e80e_3de0_eaa4_9b896f69e83c["merge()"] f33d41f9_6d94_fcc8_6c0d_546200c5b4cd["FakeFlowControlled"] 00fd93b0_e80e_3de0_eaa4_9b896f69e83c -->|defined in| f33d41f9_6d94_fcc8_6c0d_546200c5b4cd style 00fd93b0_e80e_3de0_eaa4_9b896f69e83c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java lines 1099–1110
@Override
public boolean merge(ChannelHandlerContext ctx, Http2RemoteFlowController.FlowControlled next) {
if (mergeable && next instanceof FakeFlowControlled) {
FakeFlowControlled ffcNext = (FakeFlowControlled) next;
originalPayloadSize += ffcNext.originalPayloadSize;
currentPayloadSize += ffcNext.originalPayloadSize;
currentPadding = originalPadding = Math.max(originalPadding, ffcNext.originalPadding);
ffcNext.merged = true;
return true;
}
return false;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does merge() do?
merge() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java.
Where is merge() defined?
merge() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowControllerTest.java at line 1099.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free