runStickyThreadGroupTest() — netty Function Reference
Architecture documentation for the runStickyThreadGroupTest() function in DefaultThreadFactoryTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD f0b3dd12_3d19_4b8d_e4bc_69ef17ce3819["runStickyThreadGroupTest()"] eaa6bd91_82d8_cddc_06fc_0aeeb341228a["DefaultThreadFactoryTest"] f0b3dd12_3d19_4b8d_e4bc_69ef17ce3819 -->|defined in| eaa6bd91_82d8_cddc_06fc_0aeeb341228a 848e2730_44ec_1d86_5a60_b70f6858121c["testDefaultThreadFactoryStickyThreadGroupConstructor()"] 848e2730_44ec_1d86_5a60_b70f6858121c -->|calls| f0b3dd12_3d19_4b8d_e4bc_69ef17ce3819 acdf49b3_934e_cbb4_487b_ff54a875c5c5["testDefaultThreadFactoryInheritsThreadGroupFromSecurityManager()"] acdf49b3_934e_cbb4_487b_ff54a875c5c5 -->|calls| f0b3dd12_3d19_4b8d_e4bc_69ef17ce3819 style f0b3dd12_3d19_4b8d_e4bc_69ef17ce3819 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/DefaultThreadFactoryTest.java lines 187–217
private static void runStickyThreadGroupTest(
final Callable<DefaultThreadFactory> callable,
final ThreadGroup expected) throws InterruptedException {
final AtomicReference<ThreadGroup> captured = new AtomicReference<ThreadGroup>();
final AtomicReference<Throwable> exception = new AtomicReference<Throwable>();
final Thread first = new Thread(new ThreadGroup("wrong"), new Runnable() {
@Override
public void run() {
final DefaultThreadFactory factory;
try {
factory = callable.call();
} catch (Exception e) {
exception.set(e);
throw new RuntimeException(e);
}
final Thread t = factory.newThread(new Runnable() {
@Override
public void run() {
}
});
captured.set(t.getThreadGroup());
}
});
first.start();
first.join();
assertNull(exception.get());
assertEquals(expected, captured.get());
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does runStickyThreadGroupTest() do?
runStickyThreadGroupTest() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/DefaultThreadFactoryTest.java.
Where is runStickyThreadGroupTest() defined?
runStickyThreadGroupTest() is defined in common/src/test/java/io/netty/util/concurrent/DefaultThreadFactoryTest.java at line 187.
What calls runStickyThreadGroupTest()?
runStickyThreadGroupTest() is called by 2 function(s): testDefaultThreadFactoryInheritsThreadGroupFromSecurityManager, testDefaultThreadFactoryStickyThreadGroupConstructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free