testRemoveOnEventLoopIteration() — netty Function Reference
Architecture documentation for the testRemoveOnEventLoopIteration() function in SingleThreadEventLoopTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD be04d0b9_df14_9e03_2cef_90cb9a956f5d["testRemoveOnEventLoopIteration()"] 42a05bb6_77d1_5163_f1de_dc06e1ae82b0["SingleThreadEventLoopTest"] be04d0b9_df14_9e03_2cef_90cb9a956f5d -->|defined in| 42a05bb6_77d1_5163_f1de_dc06e1ae82b0 a41ac01b_23e9_f35e_2956_7815c0f64117["getInvocationCount()"] be04d0b9_df14_9e03_2cef_90cb9a956f5d -->|calls| a41ac01b_23e9_f35e_2956_7815c0f64117 style be04d0b9_df14_9e03_2cef_90cb9a956f5d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java lines 497–514
@Test
@Timeout(value = 10000, unit = TimeUnit.MILLISECONDS)
public void testRemoveOnEventLoopIteration() throws Exception {
CountingRunnable onIteration1 = new CountingRunnable();
loopC.executeAfterEventLoopIteration(onIteration1);
CountingRunnable onIteration2 = new CountingRunnable();
loopC.executeAfterEventLoopIteration(onIteration2);
loopC.removeAfterEventLoopIterationTask(onIteration1);
CountingRunnable noopTask = new CountingRunnable();
loopC.submit(noopTask).sync();
loopC.iterationEndSignal.take();
assertEquals(1, noopTask.getInvocationCount(), "Unexpected invocation count for regular task.");
assertEquals(1, onIteration2.getInvocationCount(),
"Unexpected invocation count for on every eventloop iteration task.");
assertEquals(0, onIteration1.getInvocationCount(),
"Unexpected invocation count for on every eventloop iteration task.");
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testRemoveOnEventLoopIteration() do?
testRemoveOnEventLoopIteration() is a function in the netty codebase, defined in transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java.
Where is testRemoveOnEventLoopIteration() defined?
testRemoveOnEventLoopIteration() is defined in transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java at line 497.
What does testRemoveOnEventLoopIteration() call?
testRemoveOnEventLoopIteration() 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