SuspendableDefaultEventLoop Class — netty Architecture
Architecture documentation for the SuspendableDefaultEventLoop class in DefaultEventLoopTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 127ddee2_f855_978a_5ee1_44b8c3ed9eb3["SuspendableDefaultEventLoop"] c56aecba_978b_2ab8_63d3_0c910713aec7["DefaultEventLoopTest.java"] 127ddee2_f855_978a_5ee1_44b8c3ed9eb3 -->|defined in| c56aecba_978b_2ab8_63d3_0c910713aec7 c25a38c0_950b_ae17_0aaf_b0d5e5f5b6a1["SuspendableDefaultEventLoop()"] 127ddee2_f855_978a_5ee1_44b8c3ed9eb3 -->|method| c25a38c0_950b_ae17_0aaf_b0d5e5f5b6a1 3a69e567_258e_ca7f_a3f0_df50f6920f38["run()"] 127ddee2_f855_978a_5ee1_44b8c3ed9eb3 -->|method| 3a69e567_258e_ca7f_a3f0_df50f6920f38
Relationship Graph
Source Code
testsuite/src/main/java/io/netty/testsuite/transport/DefaultEventLoopTest.java lines 80–106
private static final class SuspendableDefaultEventLoop extends SingleThreadEventLoop {
SuspendableDefaultEventLoop(EventLoopGroup parent, Executor executor) {
super(parent, executor, true, true, DEFAULT_MAX_PENDING_TASKS,
RejectedExecutionHandlers.reject());
}
@Override
protected void run() {
for (;;) {
Runnable task = takeTask();
if (task != null) {
runTask(task);
updateLastExecutionTime();
}
// Check if a suspend is requested and we have no more tasks. If so,
// exit the run() method to allow the suspension to complete.
if (canSuspend()) {
break;
}
if (confirmShutdown()) {
break;
}
}
}
}
Source
Frequently Asked Questions
What is the SuspendableDefaultEventLoop class?
SuspendableDefaultEventLoop is a class in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/DefaultEventLoopTest.java.
Where is SuspendableDefaultEventLoop defined?
SuspendableDefaultEventLoop is defined in testsuite/src/main/java/io/netty/testsuite/transport/DefaultEventLoopTest.java at line 80.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free