Home / Function/ computeWaitAutoRead() — netty Function Reference

computeWaitAutoRead() — netty Function Reference

Architecture documentation for the computeWaitAutoRead() function in TrafficShapingHandlerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3e493cbd_07b8_9344_786f_99b3effadf54["computeWaitAutoRead()"]
  89b0606a_219d_4de0_ef55_0f86426aafb3["TrafficShapingHandlerTest"]
  3e493cbd_07b8_9344_786f_99b3effadf54 -->|defined in| 89b0606a_219d_4de0_ef55_0f86426aafb3
  503172e1_7515_719f_2b96_1bd3020235eb["testAutoReadTrafficShapping()"]
  503172e1_7515_719f_2b96_1bd3020235eb -->|calls| 3e493cbd_07b8_9344_786f_99b3effadf54
  429979ff_3ffe_c204_17e9_e457124e234a["testAutoReadGlobalTrafficShapping()"]
  429979ff_3ffe_c204_17e9_e457124e234a -->|calls| 3e493cbd_07b8_9344_786f_99b3effadf54
  style 3e493cbd_07b8_9344_786f_99b3effadf54 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

testsuite/src/main/java/io/netty/testsuite/transport/socket/TrafficShapingHandlerTest.java lines 115–130

    private static long[] computeWaitAutoRead(int []autoRead) {
        long [] minimalWaitBetween = new long[autoRead.length + 1];
        minimalWaitBetween[0] = 0;
        for (int i = 0; i < autoRead.length; i++) {
            if (autoRead[i] != 0) {
                if (autoRead[i] > 0) {
                    minimalWaitBetween[i + 1] = -1;
                } else {
                    minimalWaitBetween[i + 1] = check;
                }
            } else {
                minimalWaitBetween[i + 1] = 0;
            }
        }
        return minimalWaitBetween;
    }

Domain

Subdomains

Frequently Asked Questions

What does computeWaitAutoRead() do?
computeWaitAutoRead() is a function in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/TrafficShapingHandlerTest.java.
Where is computeWaitAutoRead() defined?
computeWaitAutoRead() is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/TrafficShapingHandlerTest.java at line 115.
What calls computeWaitAutoRead()?
computeWaitAutoRead() is called by 2 function(s): testAutoReadGlobalTrafficShapping, testAutoReadTrafficShapping.

Analyze Your Own Codebase

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

Try Supermodel Free