multipleOutboundStreams() — netty Function Reference
Architecture documentation for the multipleOutboundStreams() function in Http2MultiplexCodecBuilderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD dfc49e47_721e_23fc_d8ab_f452d62294df["multipleOutboundStreams()"] 6f38501f_37dc_377c_36b1_15b1a68d236c["Http2MultiplexCodecBuilderTest"] dfc49e47_721e_23fc_d8ab_f452d62294df -->|defined in| 6f38501f_37dc_377c_36b1_15b1a68d236c style dfc49e47_721e_23fc_d8ab_f452d62294df fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexCodecBuilderTest.java lines 152–183
@Test
public void multipleOutboundStreams() throws Exception {
Http2StreamChannel childChannel1 = newOutboundStream(new TestChannelInitializer());
assertTrue(childChannel1.isActive());
assertFalse(isStreamIdValid(childChannel1.stream().id()));
Http2StreamChannel childChannel2 = newOutboundStream(new TestChannelInitializer());
assertTrue(childChannel2.isActive());
assertFalse(isStreamIdValid(childChannel2.stream().id()));
Http2Headers headers1 = new DefaultHttp2Headers();
Http2Headers headers2 = new DefaultHttp2Headers();
// Test that streams can be made active (headers sent) in different order than the corresponding channels
// have been created.
childChannel2.writeAndFlush(new DefaultHttp2HeadersFrame(headers2));
childChannel1.writeAndFlush(new DefaultHttp2HeadersFrame(headers1));
Http2HeadersFrame headersFrame2 = serverLastInboundHandler.blockingReadInbound();
assertNotNull(headersFrame2);
assertEquals(3, headersFrame2.stream().id());
Http2HeadersFrame headersFrame1 = serverLastInboundHandler.blockingReadInbound();
assertNotNull(headersFrame1);
assertEquals(5, headersFrame1.stream().id());
assertEquals(3, childChannel2.stream().id());
assertEquals(5, childChannel1.stream().id());
childChannel1.close();
childChannel2.close();
serverLastInboundHandler.checkException();
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does multipleOutboundStreams() do?
multipleOutboundStreams() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexCodecBuilderTest.java.
Where is multipleOutboundStreams() defined?
multipleOutboundStreams() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexCodecBuilderTest.java at line 152.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free