testWrappedExecutorIsShutdown() — netty Function Reference
Architecture documentation for the testWrappedExecutorIsShutdown() function in SingleThreadEventExecutorTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 719b13be_b489_cd13_248f_561b21ae715e["testWrappedExecutorIsShutdown()"] bbf4ea8d_698f_542a_1559_437b1b237a04["SingleThreadEventExecutorTest"] 719b13be_b489_cd13_248f_561b21ae715e -->|defined in| bbf4ea8d_698f_542a_1559_437b1b237a04 b72bd0d3_e8d8_a3b6_089f_5128610a4cc0["executeShouldFail()"] 719b13be_b489_cd13_248f_561b21ae715e -->|calls| b72bd0d3_e8d8_a3b6_089f_5128610a4cc0 d1474077_6d3a_87c2_2d11_070af739005b["run()"] 719b13be_b489_cd13_248f_561b21ae715e -->|calls| d1474077_6d3a_87c2_2d11_070af739005b style 719b13be_b489_cd13_248f_561b21ae715e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/concurrent/SingleThreadEventExecutorTest.java lines 250–277
@Test
public void testWrappedExecutorIsShutdown() {
ExecutorService executorService = Executors.newSingleThreadExecutor();
final SingleThreadEventExecutor executor =
new SingleThreadEventExecutor(null, executorService, false) {
@Override
protected void run() {
while (!confirmShutdown()) {
Runnable task = takeTask();
if (task != null) {
task.run();
}
}
}
};
executorService.shutdownNow();
executeShouldFail(executor);
executeShouldFail(executor);
assertThrows(RejectedExecutionException.class, new Executable() {
@Override
public void execute() {
executor.shutdownGracefully().syncUninterruptibly();
}
});
assertTrue(executor.isShutdown());
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testWrappedExecutorIsShutdown() do?
testWrappedExecutorIsShutdown() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/concurrent/SingleThreadEventExecutorTest.java.
Where is testWrappedExecutorIsShutdown() defined?
testWrappedExecutorIsShutdown() is defined in common/src/test/java/io/netty/util/concurrent/SingleThreadEventExecutorTest.java at line 250.
What does testWrappedExecutorIsShutdown() call?
testWrappedExecutorIsShutdown() calls 2 function(s): executeShouldFail, run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free