testRunWithoutOwner() — netty Function Reference
Architecture documentation for the testRunWithoutOwner() function in ManualIoEventLoopTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 269ac8f8_2c21_0c88_7cd0_1ba80f7fda10["testRunWithoutOwner()"] 7f1091cc_a8b6_0293_92ad_d94222ae6482["ManualIoEventLoopTest"] 269ac8f8_2c21_0c88_7cd0_1ba80f7fda10 -->|defined in| 7f1091cc_a8b6_0293_92ad_d94222ae6482 3bf16ebe_cf8d_923f_9559_397075f9b2a1["TestIoHandler()"] 269ac8f8_2c21_0c88_7cd0_1ba80f7fda10 -->|calls| 3bf16ebe_cf8d_923f_9559_397075f9b2a1 style 269ac8f8_2c21_0c88_7cd0_1ba80f7fda10 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java lines 251–264
@Test
public void testRunWithoutOwner() throws ExecutionException, InterruptedException {
ManualIoEventLoop eventLoop = new ManualIoEventLoop(null, executor ->
new TestIoHandler(new Semaphore(0)));
// prior to setOwningThread, runNow is forbidden
assertThrows(IllegalStateException.class, eventLoop::runNow);
eventLoop.setOwningThread(Thread.currentThread());
eventLoop.runNow(); // runs fine
eventLoop.shutdownGracefully();
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testRunWithoutOwner() do?
testRunWithoutOwner() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java.
Where is testRunWithoutOwner() defined?
testRunWithoutOwner() is defined in transport/src/test/java/io/netty/channel/ManualIoEventLoopTest.java at line 251.
What does testRunWithoutOwner() call?
testRunWithoutOwner() calls 1 function(s): TestIoHandler.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free