Home / Function/ setup() — netty Function Reference

setup() — netty Function Reference

Architecture documentation for the setup() function in UniformStreamByteDistributorTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  75849638_989f_655e_1d7d_dc8477e8c8f6["setup()"]
  c9ed8a9b_20d0_d85d_3ba2_4bce8a2cb72f["UniformStreamByteDistributorTest"]
  75849638_989f_655e_1d7d_dc8477e8c8f6 -->|defined in| c9ed8a9b_20d0_d85d_3ba2_4bce8a2cb72f
  ba51586b_9db8_a3bc_5389_8ae4d02826b8["resetWriter()"]
  75849638_989f_655e_1d7d_dc8477e8c8f6 -->|calls| ba51586b_9db8_a3bc_5389_8ae4d02826b8
  a6c2aca6_aa8e_1f2c_221a_88b9bd0bd852["setPriority()"]
  75849638_989f_655e_1d7d_dc8477e8c8f6 -->|calls| a6c2aca6_aa8e_1f2c_221a_88b9bd0bd852
  style 75849638_989f_655e_1d7d_dc8477e8c8f6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/UniformStreamByteDistributorTest.java lines 67–84

    @BeforeEach
    public void setup() throws Http2Exception {
        MockitoAnnotations.initMocks(this);

        stateMap = new IntObjectHashMap<TestStreamByteDistributorStreamState>();
        connection = new DefaultHttp2Connection(false);
        distributor = new UniformStreamByteDistributor(connection);

        // Assume we always write all the allocated bytes.
        resetWriter();

        connection.local().createStream(STREAM_A, false);
        connection.local().createStream(STREAM_B, false);
        Http2Stream streamC = connection.local().createStream(STREAM_C, false);
        Http2Stream streamD = connection.local().createStream(STREAM_D, false);
        setPriority(streamC.id(), STREAM_A, DEFAULT_PRIORITY_WEIGHT, false);
        setPriority(streamD.id(), STREAM_A, DEFAULT_PRIORITY_WEIGHT, false);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free