Home / Function/ testScaleDownDoesNotGoBelowMinThreads() — netty Function Reference

testScaleDownDoesNotGoBelowMinThreads() — netty Function Reference

Architecture documentation for the testScaleDownDoesNotGoBelowMinThreads() function in AutoScalingEventExecutorChooserFactoryTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  fa39d00b_2276_5a04_7a4c_fcb81e990f8e["testScaleDownDoesNotGoBelowMinThreads()"]
  b457a618_1afa_e8a9_dd34_152c53154c93["AutoScalingEventExecutorChooserFactoryTest"]
  fa39d00b_2276_5a04_7a4c_fcb81e990f8e -->|defined in| b457a618_1afa_e8a9_dd34_152c53154c93
  451cbcf6_6cbf_b404_e07f_191549368cc2["TestEventExecutorGroup()"]
  fa39d00b_2276_5a04_7a4c_fcb81e990f8e -->|calls| 451cbcf6_6cbf_b404_e07f_191549368cc2
  70a22675_9cb3_276f_a519_80257cc8a1a0["startAllExecutors()"]
  fa39d00b_2276_5a04_7a4c_fcb81e990f8e -->|calls| 70a22675_9cb3_276f_a519_80257cc8a1a0
  style fa39d00b_2276_5a04_7a4c_fcb81e990f8e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java lines 184–195

    @Test
    @Timeout(30)
    void testScaleDownDoesNotGoBelowMinThreads() throws InterruptedException {
        TestEventExecutorGroup group = new TestEventExecutorGroup(2, 4, 50, TimeUnit.MILLISECONDS);
        try {
            startAllExecutors(group);
            Thread.sleep(200);
            assertEquals(2, group.activeExecutorCount(), "Should not scale below minThreads");
        } finally {
            group.shutdownGracefully().syncUninterruptibly();
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testScaleDownDoesNotGoBelowMinThreads() do?
testScaleDownDoesNotGoBelowMinThreads() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java.
Where is testScaleDownDoesNotGoBelowMinThreads() defined?
testScaleDownDoesNotGoBelowMinThreads() is defined in common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java at line 184.
What does testScaleDownDoesNotGoBelowMinThreads() call?
testScaleDownDoesNotGoBelowMinThreads() calls 2 function(s): TestEventExecutorGroup, startAllExecutors.

Analyze Your Own Codebase

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

Try Supermodel Free