Home / Function/ updateDependencyTree() — netty Function Reference

updateDependencyTree() — netty Function Reference

Architecture documentation for the updateDependencyTree() function in DefaultHttp2RemoteFlowController.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  13a81f45_ce85_83d1_7203_daf1019845c9["updateDependencyTree()"]
  415966d7_2c19_58a9_659f_282cc732e73c["DefaultHttp2RemoteFlowController"]
  13a81f45_ce85_83d1_7203_daf1019845c9 -->|defined in| 415966d7_2c19_58a9_659f_282cc732e73c
  style 13a81f45_ce85_83d1_7203_daf1019845c9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java lines 179–187

    @Override
    public void updateDependencyTree(int childStreamId, int parentStreamId, short weight, boolean exclusive) {
        // It is assumed there are all validated at a higher level. For example in the Http2FrameReader.
        assert weight >= MIN_WEIGHT && weight <= MAX_WEIGHT : "Invalid weight";
        assert childStreamId != parentStreamId : "A stream cannot depend on itself";
        assert childStreamId > 0 && parentStreamId >= 0 : "childStreamId must be > 0. parentStreamId must be >= 0.";

        streamByteDistributor.updateDependencyTree(childStreamId, parentStreamId, weight, exclusive);
    }

Domain

Subdomains

Frequently Asked Questions

What does updateDependencyTree() do?
updateDependencyTree() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java.
Where is updateDependencyTree() defined?
updateDependencyTree() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2RemoteFlowController.java at line 179.

Analyze Your Own Codebase

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

Try Supermodel Free