Home / Function/ streamIdentifiersExhausted() — netty Function Reference

streamIdentifiersExhausted() — netty Function Reference

Architecture documentation for the streamIdentifiersExhausted() function in Http2FrameCodecTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  962b6794_cd90_43d1_8bb2_8bc0a3fbfd19["streamIdentifiersExhausted()"]
  71f17950_8fc4_c3e9_2e13_384d1ac7ea2c["Http2FrameCodecTest"]
  962b6794_cd90_43d1_8bb2_8bc0a3fbfd19 -->|defined in| 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c
  style 962b6794_cd90_43d1_8bb2_8bc0a3fbfd19 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java lines 776–794

    @Test
    public void streamIdentifiersExhausted() throws Http2Exception {
        int maxServerStreamId = Integer.MAX_VALUE - 1;

        assertNotNull(frameCodec.connection().local().createStream(maxServerStreamId, false));

        Http2FrameStream stream = frameCodec.newStream();
        assertNotNull(stream);

        ChannelPromise writePromise = channel.newPromise();
        channel.writeAndFlush(new DefaultHttp2HeadersFrame(new DefaultHttp2Headers()).stream(stream), writePromise);

        Http2GoAwayFrame goAwayFrame = inboundHandler.readInbound();
        assertNotNull(goAwayFrame);
        assertEquals(NO_ERROR.code(), goAwayFrame.errorCode());
        assertEquals(Integer.MAX_VALUE, goAwayFrame.lastStreamId());
        goAwayFrame.release();
        assertInstanceOf(Http2NoMoreStreamIdsException.class, writePromise.cause());
    }

Domain

Subdomains

Frequently Asked Questions

What does streamIdentifiersExhausted() do?
streamIdentifiersExhausted() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java.
Where is streamIdentifiersExhausted() defined?
streamIdentifiersExhausted() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java at line 776.

Analyze Your Own Codebase

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

Try Supermodel Free