useReadWithoutAutoRead() — netty Function Reference
Architecture documentation for the useReadWithoutAutoRead() function in Http2MultiplexTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7146fbc5_e017_9247_63b6_7b4de1186e96["useReadWithoutAutoRead()"] 4745ff96_ed57_3bd8_9861_4b786d0b6e09["Http2MultiplexTest"] 7146fbc5_e017_9247_63b6_7b4de1186e96 -->|defined in| 4745ff96_ed57_3bd8_9861_4b786d0b6e09 b6aaa370_1cd2_f0da_9101_66b9911094e2["readInChannelReadWithoutAutoRead()"] b6aaa370_1cd2_f0da_9101_66b9911094e2 -->|calls| 7146fbc5_e017_9247_63b6_7b4de1186e96 84ae55cd_3a17_dd4d_ae60_42aee6ab7f20["readInChannelReadCompleteWithoutAutoRead()"] 84ae55cd_3a17_dd4d_ae60_42aee6ab7f20 -->|calls| 7146fbc5_e017_9247_63b6_7b4de1186e96 8df7745b_db2d_ef92_4b30_080373ca9f6d["verifyFramesMultiplexedToCorrectChannel()"] 7146fbc5_e017_9247_63b6_7b4de1186e96 -->|calls| 8df7745b_db2d_ef92_4b30_080373ca9f6d style 7146fbc5_e017_9247_63b6_7b4de1186e96 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTest.java lines 699–736
private void useReadWithoutAutoRead(final boolean readComplete) {
LastInboundHandler inboundHandler = new LastInboundHandler();
Http2StreamChannel childChannel = newInboundStream(3, false, inboundHandler);
assertTrue(childChannel.config().isAutoRead());
childChannel.config().setAutoRead(false);
assertFalse(childChannel.config().isAutoRead());
Http2HeadersFrame headersFrame = inboundHandler.readInbound();
assertNotNull(headersFrame);
// Add a handler which will request reads.
childChannel.pipeline().addFirst(new ChannelInboundHandlerAdapter() {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) {
ctx.fireChannelRead(msg);
if (!readComplete) {
ctx.read();
}
}
@Override
public void channelReadComplete(ChannelHandlerContext ctx) {
ctx.fireChannelReadComplete();
if (readComplete) {
ctx.read();
}
}
});
frameInboundWriter.writeInboundData(childChannel.stream().id(), bb("hello world"), 0, false);
frameInboundWriter.writeInboundData(childChannel.stream().id(), bb("foo"), 0, false);
frameInboundWriter.writeInboundData(childChannel.stream().id(), bb("bar"), 0, false);
frameInboundWriter.writeInboundData(childChannel.stream().id(), bb("hello world"), 0, false);
frameInboundWriter.writeInboundData(childChannel.stream().id(), bb("foo"), 0, false);
frameInboundWriter.writeInboundData(childChannel.stream().id(), bb("bar"), 0, true);
verifyFramesMultiplexedToCorrectChannel(childChannel, inboundHandler, 6);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does useReadWithoutAutoRead() do?
useReadWithoutAutoRead() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTest.java.
Where is useReadWithoutAutoRead() defined?
useReadWithoutAutoRead() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexTest.java at line 699.
What does useReadWithoutAutoRead() call?
useReadWithoutAutoRead() calls 1 function(s): verifyFramesMultiplexedToCorrectChannel.
What calls useReadWithoutAutoRead()?
useReadWithoutAutoRead() is called by 2 function(s): readInChannelReadCompleteWithoutAutoRead, readInChannelReadWithoutAutoRead.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free