Home / Function/ updatePseudoTime() — netty Function Reference

updatePseudoTime() — netty Function Reference

Architecture documentation for the updatePseudoTime() function in WeightedFairQueueByteDistributor.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  44e16369_7668_ebe2_f028_9d6680dd00c4["updatePseudoTime()"]
  7bb99c84_0884_e59e_f284_a7da408d2406["State"]
  44e16369_7668_ebe2_f028_9d6680dd00c4 -->|defined in| 7bb99c84_0884_e59e_f284_a7da408d2406
  fee5801b_b90a_5512_05a6_7256df952cd8["distributeToChildren()"]
  fee5801b_b90a_5512_05a6_7256df952cd8 -->|calls| 44e16369_7668_ebe2_f028_9d6680dd00c4
  style 44e16369_7668_ebe2_f028_9d6680dd00c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributor.java lines 658–663

        void updatePseudoTime(State parentState, int nsent, long totalQueuedWeights) {
            assert streamId != CONNECTION_STREAM_ID && nsent >= 0;
            // If the current pseudoTimeToSend is greater than parentState.pseudoTime then we previously over accounted
            // and should use parentState.pseudoTime.
            pseudoTimeToWrite = min(pseudoTimeToWrite, parentState.pseudoTime) + nsent * totalQueuedWeights / weight;
        }

Domain

Subdomains

Frequently Asked Questions

What does updatePseudoTime() do?
updatePseudoTime() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributor.java.
Where is updatePseudoTime() defined?
updatePseudoTime() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/WeightedFairQueueByteDistributor.java at line 658.
What calls updatePseudoTime()?
updatePseudoTime() is called by 1 function(s): distributeToChildren.

Analyze Your Own Codebase

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

Try Supermodel Free