testOnEventLoopIteration() — netty Function Reference
Architecture documentation for the testOnEventLoopIteration() function in SingleThreadEventLoopTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 1a1f4f5e_7001_e8dc_6608_e6f1d93f68ee["testOnEventLoopIteration()"] 42a05bb6_77d1_5163_f1de_dc06e1ae82b0["SingleThreadEventLoopTest"] 1a1f4f5e_7001_e8dc_6608_e6f1d93f68ee -->|defined in| 42a05bb6_77d1_5163_f1de_dc06e1ae82b0 a41ac01b_23e9_f35e_2956_7815c0f64117["getInvocationCount()"] 1a1f4f5e_7001_e8dc_6608_e6f1d93f68ee -->|calls| a41ac01b_23e9_f35e_2956_7815c0f64117 style 1a1f4f5e_7001_e8dc_6608_e6f1d93f68ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java lines 484–495
@Test
@Timeout(value = 10000, unit = TimeUnit.MILLISECONDS)
public void testOnEventLoopIteration() throws Exception {
CountingRunnable onIteration = new CountingRunnable();
loopC.executeAfterEventLoopIteration(onIteration);
CountingRunnable noopTask = new CountingRunnable();
loopC.submit(noopTask).sync();
loopC.iterationEndSignal.take();
assertEquals(1, noopTask.getInvocationCount(), "Unexpected invocation count for regular task.");
assertEquals(1, onIteration.getInvocationCount(),
"Unexpected invocation count for on every eventloop iteration task.");
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testOnEventLoopIteration() do?
testOnEventLoopIteration() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java.
Where is testOnEventLoopIteration() defined?
testOnEventLoopIteration() is defined in transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java at line 484.
What does testOnEventLoopIteration() call?
testOnEventLoopIteration() calls 1 function(s): getInvocationCount.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free