setParent() — netty Function Reference
Architecture documentation for the setParent() function in WeightedFairQueueByteDistributor.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0bfeea84_edf2_a350_f986_e4dde4dc5152["setParent()"] 7bb99c84_0884_e59e_f284_a7da408d2406["State"] 0bfeea84_edf2_a350_f986_e4dde4dc5152 -->|defined in| 7bb99c84_0884_e59e_f284_a7da408d2406 fb17eda3_f88a_c99f_e79c_e7e5ccb06a40["takeChild()"] fb17eda3_f88a_c99f_e79c_e7e5ccb06a40 -->|calls| 0bfeea84_edf2_a350_f986_e4dde4dc5152 a7426564_13ec_4caa_ec35_83d94c9ad9d0["removeChild()"] a7426564_13ec_4caa_ec35_83d94c9ad9d0 -->|calls| 0bfeea84_edf2_a350_f986_e4dde4dc5152 ccd9546d_2136_440a_df2f_40cc407cd5f7["removePseudoTimeQueue()"] 0bfeea84_edf2_a350_f986_e4dde4dc5152 -->|calls| ccd9546d_2136_440a_df2f_40cc407cd5f7 4ff2400b_5ed4_4092_bc1a_dfee981e6cf7["activeCountChangeForTree()"] 0bfeea84_edf2_a350_f986_e4dde4dc5152 -->|calls| 4ff2400b_5ed4_4092_bc1a_dfee981e6cf7 style 0bfeea84_edf2_a350_f986_e4dde4dc5152 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributor.java lines 585–594
private void setParent(State newParent) {
// if activeCountForTree == 0 then it will not be in its parent's pseudoTimeQueue.
if (activeCountForTree != 0 && parent != null) {
parent.removePseudoTimeQueue(this);
parent.activeCountChangeForTree(-activeCountForTree);
}
parent = newParent;
// Use MAX_VALUE if no parent because lower depth is considered higher priority by StateOnlyComparator.
dependencyTreeDepth = newParent == null ? MAX_VALUE : newParent.dependencyTreeDepth + 1;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does setParent() do?
setParent() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributor.java.
Where is setParent() defined?
setParent() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributor.java at line 585.
What does setParent() call?
setParent() calls 2 function(s): activeCountChangeForTree, removePseudoTimeQueue.
What calls setParent()?
setParent() is called by 2 function(s): removeChild, takeChild.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free