CountingRunnable Class — netty Architecture
Architecture documentation for the CountingRunnable class in SingleThreadEventLoopTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD d5f9cc71_7682_f699_7244_6300cc5ee211["CountingRunnable"] 220c0306_7851_92da_39e2_f00ceff58693["SingleThreadEventLoopTest.java"] d5f9cc71_7682_f699_7244_6300cc5ee211 -->|defined in| 220c0306_7851_92da_39e2_f00ceff58693 8ebd77a5_85aa_f0d7_ab22_2d832d339b49["run()"] d5f9cc71_7682_f699_7244_6300cc5ee211 -->|method| 8ebd77a5_85aa_f0d7_ab22_2d832d339b49 a41ac01b_23e9_f35e_2956_7815c0f64117["getInvocationCount()"] d5f9cc71_7682_f699_7244_6300cc5ee211 -->|method| a41ac01b_23e9_f35e_2956_7815c0f64117 64ba94d9_8fd1_0ba5_c444_3873f71cdf79["resetInvocationCount()"] d5f9cc71_7682_f699_7244_6300cc5ee211 -->|method| 64ba94d9_8fd1_0ba5_c444_3873f71cdf79
Relationship Graph
Source Code
transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java lines 594–610
private static class CountingRunnable implements Runnable {
private final AtomicInteger invocationCount = new AtomicInteger();
@Override
public void run() {
invocationCount.incrementAndGet();
}
public int getInvocationCount() {
return invocationCount.get();
}
public void resetInvocationCount() {
invocationCount.set(0);
}
}
Source
Frequently Asked Questions
What is the CountingRunnable class?
CountingRunnable is a class in the netty codebase, defined in transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java.
Where is CountingRunnable defined?
CountingRunnable is defined in transport/src/test/java/io/netty/channel/SingleThreadEventLoopTest.java at line 594.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free