mockFlowControl() — netty Function Reference
Architecture documentation for the mockFlowControl() function in Http2ConnectionRoundtripTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8c34e514_4c13_451a_36b1_0d0108c8d89d["mockFlowControl()"] 0d6189e8_c033_39ff_d087_9019351440fe["Http2ConnectionRoundtripTest"] 8c34e514_4c13_451a_36b1_0d0108c8d89d -->|defined in| 0d6189e8_c033_39ff_d087_9019351440fe 2d30a7cc_c97e_341f_dc17_6ebc435d434e["setup()"] 2d30a7cc_c97e_341f_dc17_6ebc435d434e -->|calls| 8c34e514_4c13_451a_36b1_0d0108c8d89d style 8c34e514_4c13_451a_36b1_0d0108c8d89d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionRoundtripTest.java lines 1245–1256
private static void mockFlowControl(Http2FrameListener listener) throws Http2Exception {
doAnswer(new Answer<Integer>() {
@Override
public Integer answer(InvocationOnMock invocation) throws Throwable {
ByteBuf buf = (ByteBuf) invocation.getArguments()[2];
int padding = (Integer) invocation.getArguments()[3];
return buf.readableBytes() + padding;
}
}).when(listener).onDataRead(any(ChannelHandlerContext.class), anyInt(),
any(ByteBuf.class), anyInt(), anyBoolean());
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does mockFlowControl() do?
mockFlowControl() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionRoundtripTest.java.
Where is mockFlowControl() defined?
mockFlowControl() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2ConnectionRoundtripTest.java at line 1245.
What calls mockFlowControl()?
mockFlowControl() is called by 1 function(s): setup.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free