DefaultEventLoopGroup Class — netty Architecture
Architecture documentation for the DefaultEventLoopGroup class in DefaultEventLoopGroup.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD eb84cb62_b1f7_fce2_856b_289c43a2e62e["DefaultEventLoopGroup"] e87a2990_b38c_0416_9fbe_c8bcf84aa2fc["DefaultEventLoopGroup.java"] eb84cb62_b1f7_fce2_856b_289c43a2e62e -->|defined in| e87a2990_b38c_0416_9fbe_c8bcf84aa2fc e7dfc446_44d7_04e5_3d58_12a6aeaefeb6["DefaultEventLoopGroup()"] eb84cb62_b1f7_fce2_856b_289c43a2e62e -->|method| e7dfc446_44d7_04e5_3d58_12a6aeaefeb6 8162e83c_c727_6f24_6421_24cc885befdd["EventLoop()"] eb84cb62_b1f7_fce2_856b_289c43a2e62e -->|method| 8162e83c_c727_6f24_6421_24cc885befdd
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/DefaultEventLoopGroup.java lines 24–76
@Deprecated
public class DefaultEventLoopGroup extends MultithreadEventLoopGroup {
/**
* Create a new instance with the default number of threads.
*/
public DefaultEventLoopGroup() {
this(0);
}
/**
* Create a new instance
*
* @param nThreads the number of threads to use
*/
public DefaultEventLoopGroup(int nThreads) {
this(nThreads, (ThreadFactory) null);
}
/**
* Create a new instance with the default number of threads and the given {@link ThreadFactory}.
*
* @param threadFactory the {@link ThreadFactory} or {@code null} to use the default
*/
public DefaultEventLoopGroup(ThreadFactory threadFactory) {
this(0, threadFactory);
}
/**
* Create a new instance
*
* @param nThreads the number of threads to use
* @param threadFactory the {@link ThreadFactory} or {@code null} to use the default
*/
public DefaultEventLoopGroup(int nThreads, ThreadFactory threadFactory) {
super(nThreads, threadFactory);
}
/**
* Create a new instance
*
* @param nThreads the number of threads to use
* @param executor the Executor to use, or {@code null} if the default should be used.
*/
public DefaultEventLoopGroup(int nThreads, Executor executor) {
super(nThreads, executor);
}
@Override
protected EventLoop newChild(Executor executor, Object... args) throws Exception {
return new DefaultEventLoop(this, executor);
}
}
Source
Frequently Asked Questions
What is the DefaultEventLoopGroup class?
DefaultEventLoopGroup is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/DefaultEventLoopGroup.java.
Where is DefaultEventLoopGroup defined?
DefaultEventLoopGroup is defined in transport/src/main/java/io/netty/channel/DefaultEventLoopGroup.java at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free