testScaleDownWhenExecutorIsNotStarted() — netty Function Reference
Architecture documentation for the testScaleDownWhenExecutorIsNotStarted() function in AutoScalingEventExecutorChooserFactoryTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 52a56cd5_ecdb_476a_59ff_d4822ab9dbb6["testScaleDownWhenExecutorIsNotStarted()"] b457a618_1afa_e8a9_dd34_152c53154c93["AutoScalingEventExecutorChooserFactoryTest"] 52a56cd5_ecdb_476a_59ff_d4822ab9dbb6 -->|defined in| b457a618_1afa_e8a9_dd34_152c53154c93 451cbcf6_6cbf_b404_e07f_191549368cc2["TestEventExecutorGroup()"] 52a56cd5_ecdb_476a_59ff_d4822ab9dbb6 -->|calls| 451cbcf6_6cbf_b404_e07f_191549368cc2 style 52a56cd5_ecdb_476a_59ff_d4822ab9dbb6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java lines 171–182
@Test
@Timeout(30)
void testScaleDownWhenExecutorIsNotStarted() throws InterruptedException {
TestEventExecutorGroup group = new TestEventExecutorGroup(2, 4, 50, TimeUnit.MILLISECONDS);
try {
// Do not start executors
Thread.sleep(200);
assertEquals(2, group.activeExecutorCount(), "Should not scale below minThreads");
} finally {
group.shutdownGracefully().syncUninterruptibly();
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does testScaleDownWhenExecutorIsNotStarted() do?
testScaleDownWhenExecutorIsNotStarted() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java.
Where is testScaleDownWhenExecutorIsNotStarted() defined?
testScaleDownWhenExecutorIsNotStarted() is defined in common/src/test/java/io/netty/util/concurrent/AutoScalingEventExecutorChooserFactoryTest.java at line 171.
What does testScaleDownWhenExecutorIsNotStarted() call?
testScaleDownWhenExecutorIsNotStarted() calls 1 function(s): TestEventExecutorGroup.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free