newOutboundStreamsShouldBeBuffered() — netty Function Reference
Architecture documentation for the newOutboundStreamsShouldBeBuffered() function in Http2FrameCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 74dca4ea_fc4a_0f77_495f_1b2ccecb4fd3["newOutboundStreamsShouldBeBuffered()"] 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c["Http2FrameCodecTest"] 74dca4ea_fc4a_0f77_495f_1b2ccecb4fd3 -->|defined in| 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c 868f866c_1fcb_c067_1110_d326c0e4d94b["setUp()"] 74dca4ea_fc4a_0f77_495f_1b2ccecb4fd3 -->|calls| 868f866c_1fcb_c067_1110_d326c0e4d94b style 74dca4ea_fc4a_0f77_495f_1b2ccecb4fd3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java lines 677–704
@Test
public void newOutboundStreamsShouldBeBuffered() throws Exception {
setUp(Http2FrameCodecBuilder.forServer().encoderEnforceMaxConcurrentStreams(true),
new Http2Settings().maxConcurrentStreams(1));
Http2FrameStream stream1 = frameCodec.newStream();
Http2FrameStream stream2 = frameCodec.newStream();
ChannelPromise promise1 = channel.newPromise();
ChannelPromise promise2 = channel.newPromise();
channel.writeAndFlush(new DefaultHttp2HeadersFrame(new DefaultHttp2Headers()).stream(stream1), promise1);
channel.writeAndFlush(new DefaultHttp2HeadersFrame(new DefaultHttp2Headers()).stream(stream2), promise2);
assertTrue(isStreamIdValid(stream1.id()));
channel.runPendingTasks();
assertTrue(isStreamIdValid(stream2.id()));
assertTrue(promise1.syncUninterruptibly().isSuccess());
assertFalse(promise2.isDone());
// Increase concurrent streams limit to 2
frameInboundWriter.writeInboundSettings(new Http2Settings().maxConcurrentStreams(2));
channel.flush();
assertTrue(promise2.syncUninterruptibly().isSuccess());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does newOutboundStreamsShouldBeBuffered() do?
newOutboundStreamsShouldBeBuffered() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java.
Where is newOutboundStreamsShouldBeBuffered() defined?
newOutboundStreamsShouldBeBuffered() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java at line 677.
What does newOutboundStreamsShouldBeBuffered() call?
newOutboundStreamsShouldBeBuffered() calls 1 function(s): setUp.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free