Home / Function/ pushStreamCreateAndClose() — netty Function Reference

pushStreamCreateAndClose() — netty Function Reference

Architecture documentation for the pushStreamCreateAndClose() function in Http3ServerPushStreamManagerTest.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 3

Entity Profile

Dependency Diagram

graph TD
  c35515f9_4bcd_f37f_1776_0b3e961facd2["pushStreamCreateAndClose()"]
  716d9879_a637_c3da_7ca6_1aa12e6c5118["Http3ServerPushStreamManagerTest"]
  c35515f9_4bcd_f37f_1776_0b3e961facd2 -->|defined in| 716d9879_a637_c3da_7ca6_1aa12e6c5118
  da7f5c24_31e1_3be5_b360_27a026fe50ab["pushStreamNoHandler()"]
  da7f5c24_31e1_3be5_b360_27a026fe50ab -->|calls| c35515f9_4bcd_f37f_1776_0b3e961facd2
  20c99dca_6b1b_9d3a_fabe_e436be18a425["pushStreamWithHandler()"]
  20c99dca_6b1b_9d3a_fabe_e436be18a425 -->|calls| c35515f9_4bcd_f37f_1776_0b3e961facd2
  89c336df_ab20_798d_5637_74446f0aaecd["pushStreamWithBootstrapCreateAndClose()"]
  89c336df_ab20_798d_5637_74446f0aaecd -->|calls| c35515f9_4bcd_f37f_1776_0b3e961facd2
  d85e4a71_7b93_6a40_1331_3afa1d03beda["sendMaxPushId()"]
  c35515f9_4bcd_f37f_1776_0b3e961facd2 -->|calls| d85e4a71_7b93_6a40_1331_3afa1d03beda
  style c35515f9_4bcd_f37f_1776_0b3e961facd2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/test/java/io/netty/handler/codec/http3/Http3ServerPushStreamManagerTest.java lines 148–162

    private void pushStreamCreateAndClose(PushStreamFactory pushStreamFactory) throws Exception {
        sendMaxPushId(1);
        final long pushId = manager.reserveNextPushId();
        final EmbeddedQuicStreamChannel pushStream = pushStreamFactory.createPushStream(pushId);

        final DefaultHttp3HeadersFrame headerFrame = newHeadersFrameWithPseudoHeaders();
        assertTrue(pushStream.writeOutbound(headerFrame));
        final ByteBuf encodedHeaders = pushStream.readOutbound();
        assertNotNull(encodedHeaders);
        encodedHeaders.release();

        final ChannelInboundHandler controlStreamListener = manager.controlStreamListener();
        controlStreamListener.channelRead(controlStreamHandlerCtx, new DefaultHttp3CancelPushFrame(pushId));
        assertFalse(pushStream.isActive());
    }

Domain

Subdomains

Frequently Asked Questions

What does pushStreamCreateAndClose() do?
pushStreamCreateAndClose() is a function in the netty codebase, defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3ServerPushStreamManagerTest.java.
Where is pushStreamCreateAndClose() defined?
pushStreamCreateAndClose() is defined in codec-http3/src/test/java/io/netty/handler/codec/http3/Http3ServerPushStreamManagerTest.java at line 148.
What does pushStreamCreateAndClose() call?
pushStreamCreateAndClose() calls 1 function(s): sendMaxPushId.
What calls pushStreamCreateAndClose()?
pushStreamCreateAndClose() is called by 3 function(s): pushStreamNoHandler, pushStreamWithBootstrapCreateAndClose, pushStreamWithHandler.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free