Home / Function/ stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed() — netty Function Reference

stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed() — netty Function Reference

Architecture documentation for the stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed() function in WeightedFairQueueByteDistributorDependencyTreeTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  381f804b_d2b2_b069_9b73_cde86465fca2["stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed()"]
  f59fdba5_c411_919e_8d09_ef11c6679e0d["WeightedFairQueueByteDistributorDependencyTreeTest"]
  381f804b_d2b2_b069_9b73_cde86465fca2 -->|defined in| f59fdba5_c411_919e_8d09_ef11c6679e0d
  57fc268f_ff1d_75b5_06df_6fd94e9fd09c["setup()"]
  381f804b_d2b2_b069_9b73_cde86465fca2 -->|calls| 57fc268f_ff1d_75b5_06df_6fd94e9fd09c
  1c5f645f_d21e_09ad_9b15_1c56244ea330["verifyStateOnlyPriorityShouldBePreservedWhenStreamsAreCreated()"]
  381f804b_d2b2_b069_9b73_cde86465fca2 -->|calls| 1c5f645f_d21e_09ad_9b15_1c56244ea330
  style 381f804b_d2b2_b069_9b73_cde86465fca2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorDependencyTreeTest.java lines 127–156

    @Test
    public void stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed() throws Http2Exception {
        setup(3);

        short weight3 = MIN_WEIGHT + 1;
        short weight5 = (short) (weight3 + 1);
        short weight7 = (short) (weight5 + 1);
        setPriority(3, connection.connectionStream().id(), weight3, true);
        setPriority(5, connection.connectionStream().id(), weight5, true);
        setPriority(7, connection.connectionStream().id(), weight7, true);

        assertEquals(0, connection.numActiveStreams());
        verifyStateOnlyPriorityShouldBePreservedWhenStreamsAreCreated(weight3, weight5, weight7);

        // Now create stream objects and ensure the state and dependency tree is preserved.
        Http2Stream streamA = connection.local().createStream(3, false);
        Http2Stream streamB = connection.local().createStream(5, false);
        Http2Stream streamC = connection.local().createStream(7, false);

        assertEquals(3, connection.numActiveStreams());
        verifyStateOnlyPriorityShouldBePreservedWhenStreamsAreCreated(weight3, weight5, weight7);

        // Close all the streams and ensure the state and dependency tree is preserved.
        streamA.close();
        streamB.close();
        streamC.close();

        assertEquals(0, connection.numActiveStreams());
        verifyStateOnlyPriorityShouldBePreservedWhenStreamsAreCreated(weight3, weight5, weight7);
    }

Domain

Subdomains

Frequently Asked Questions

What does stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed() do?
stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorDependencyTreeTest.java.
Where is stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed() defined?
stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributorDependencyTreeTest.java at line 127.
What does stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed() call?
stateOnlyPriorityShouldBePreservedWhenStreamsAreCreatedAndClosed() calls 2 function(s): setup, verifyStateOnlyPriorityShouldBePreservedWhenStreamsAreCreated.

Analyze Your Own Codebase

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

Try Supermodel Free