run() — netty Function Reference
Architecture documentation for the run() function in SingleThreadIoEventLoop.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8d5dec0c_2331_5e5c_de10_b2630e1c7837["run()"] b5a24862_948e_3d05_bb70_270a6c4842a9["SingleThreadIoEventLoop"] 8d5dec0c_2331_5e5c_de10_b2630e1c7837 -->|defined in| b5a24862_948e_3d05_bb70_270a6c4842a9 b208bf5f_436c_fef2_27fc_abcda4a7d4d6["runIo()"] b208bf5f_436c_fef2_27fc_abcda4a7d4d6 -->|calls| 8d5dec0c_2331_5e5c_de10_b2630e1c7837 b208bf5f_436c_fef2_27fc_abcda4a7d4d6["runIo()"] 8d5dec0c_2331_5e5c_de10_b2630e1c7837 -->|calls| b208bf5f_436c_fef2_27fc_abcda4a7d4d6 b948a0a5_ad0f_b755_a53a_c66ec0c93d69["canSuspend()"] 8d5dec0c_2331_5e5c_de10_b2630e1c7837 -->|calls| b948a0a5_ad0f_b755_a53a_c66ec0c93d69 style 8d5dec0c_2331_5e5c_de10_b2630e1c7837 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/SingleThreadIoEventLoop.java lines 191–205
@Override
protected void run() {
assert inEventLoop();
ioHandler.initialize();
do {
runIo();
if (isShuttingDown()) {
ioHandler.prepareToDestroy();
}
// Now run all tasks for the maximum configured amount of time before trying to run IO again.
runAllTasks(maxTaskProcessingQuantumNs);
// We should continue with our loop until we either confirmed a shutdown or we can suspend it.
} while (!confirmShutdown() && !canSuspend());
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does run() do?
run() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/SingleThreadIoEventLoop.java.
Where is run() defined?
run() is defined in transport/src/main/java/io/netty/channel/SingleThreadIoEventLoop.java at line 191.
What does run() call?
run() calls 2 function(s): canSuspend, runIo.
What calls run()?
run() is called by 1 function(s): runIo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free