Home / Function/ waitForSuspension() — netty Function Reference

waitForSuspension() — netty Function Reference

Architecture documentation for the waitForSuspension() function in MultiThreadIoEventLoopGroupTest.java from the netty codebase.

Function java Buffer Search calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  5adea2a2_060c_b4a5_62c9_a2b2c4c16c53["waitForSuspension()"]
  b4c07204_4723_7056_4606_4ede1e592317["MultiThreadIoEventLoopGroupTest"]
  5adea2a2_060c_b4a5_62c9_a2b2c4c16c53 -->|defined in| b4c07204_4723_7056_4606_4ede1e592317
  9dc088c7_b110_3105_08f2_60a9b86cd695["testScalingWithIoRegistrationLifecycle()"]
  9dc088c7_b110_3105_08f2_60a9b86cd695 -->|calls| 5adea2a2_060c_b4a5_62c9_a2b2c4c16c53
  e7d55bd2_9308_0bb3_c01a_5eb1fee6b142["testShouldNotSuspendExecutorWithActiveRegistration()"]
  e7d55bd2_9308_0bb3_c01a_5eb1fee6b142 -->|calls| 5adea2a2_060c_b4a5_62c9_a2b2c4c16c53
  7f3d45f6_1f4d_1a16_9fd4_70c9200affc0["countActiveExecutors()"]
  5adea2a2_060c_b4a5_62c9_a2b2c4c16c53 -->|calls| 7f3d45f6_1f4d_1a16_9fd4_70c9200affc0
  style 5adea2a2_060c_b4a5_62c9_a2b2c4c16c53 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport/src/test/java/io/netty/channel/MultiThreadIoEventLoopGroupTest.java lines 239–249

    private static void waitForSuspension(MultiThreadIoEventLoopGroup group, int expectedSuspendedCount,
                                          long timeoutMillis) throws InterruptedException {
        long deadline = System.currentTimeMillis() + timeoutMillis;
        while (System.currentTimeMillis() < deadline) {
            if (group.executorCount() - countActiveExecutors(group) >= expectedSuspendedCount) {
                return;
            }
            Thread.sleep(50);
        }
        fail("Timed out waiting for " + expectedSuspendedCount + " executor(s) to suspend.");
    }

Domain

Subdomains

Frequently Asked Questions

What does waitForSuspension() do?
waitForSuspension() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/MultiThreadIoEventLoopGroupTest.java.
Where is waitForSuspension() defined?
waitForSuspension() is defined in transport/src/test/java/io/netty/channel/MultiThreadIoEventLoopGroupTest.java at line 239.
What does waitForSuspension() call?
waitForSuspension() calls 1 function(s): countActiveExecutors.
What calls waitForSuspension()?
waitForSuspension() is called by 2 function(s): testScalingWithIoRegistrationLifecycle, testShouldNotSuspendExecutorWithActiveRegistration.

Analyze Your Own Codebase

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

Try Supermodel Free