DefaultEventLoop Class — netty Architecture
Architecture documentation for the DefaultEventLoop class in DefaultEventLoop.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 4d043b15_ef9a_f8a1_bdc7_e06855715e5a["DefaultEventLoop"] 2a3c7668_ce13_da21_452d_e64e822ede4f["DefaultEventLoop.java"] 4d043b15_ef9a_f8a1_bdc7_e06855715e5a -->|defined in| 2a3c7668_ce13_da21_452d_e64e822ede4f fbdc8dc2_02ca_1fcb_9822_0e9c5c40b8cd["DefaultEventLoop()"] 4d043b15_ef9a_f8a1_bdc7_e06855715e5a -->|method| fbdc8dc2_02ca_1fcb_9822_0e9c5c40b8cd 61ea904b_94b7_dd09_2ce3_04788c39eec1["run()"] 4d043b15_ef9a_f8a1_bdc7_e06855715e5a -->|method| 61ea904b_94b7_dd09_2ce3_04788c39eec1
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/DefaultEventLoop.java lines 23–63
public class DefaultEventLoop extends SingleThreadEventLoop {
public DefaultEventLoop() {
this((EventLoopGroup) null);
}
public DefaultEventLoop(ThreadFactory threadFactory) {
this(null, threadFactory);
}
public DefaultEventLoop(Executor executor) {
this(null, executor);
}
public DefaultEventLoop(EventLoopGroup parent) {
this(parent, new DefaultThreadFactory(DefaultEventLoop.class));
}
public DefaultEventLoop(EventLoopGroup parent, ThreadFactory threadFactory) {
super(parent, threadFactory, true);
}
public DefaultEventLoop(EventLoopGroup parent, Executor executor) {
super(parent, executor, true);
}
@Override
protected void run() {
for (;;) {
Runnable task = takeTask();
if (task != null) {
runTask(task);
updateLastExecutionTime();
}
if (confirmShutdown()) {
break;
}
}
}
}
Source
Frequently Asked Questions
What is the DefaultEventLoop class?
DefaultEventLoop is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/DefaultEventLoop.java.
Where is DefaultEventLoop defined?
DefaultEventLoop is defined in transport/src/main/java/io/netty/channel/DefaultEventLoop.java at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free