EpollEventLoopGroup Class — netty Architecture
Architecture documentation for the EpollEventLoopGroup class in EpollEventLoopGroup.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7eca32f1_ce25_920b_6393_20a47b536826["EpollEventLoopGroup"] c70ddbb5_81e0_4bf8_807e_0e9bd24f69bb["EpollEventLoopGroup.java"] 7eca32f1_ce25_920b_6393_20a47b536826 -->|defined in| c70ddbb5_81e0_4bf8_807e_0e9bd24f69bb a59b832a_f9de_3ab5_425f_698cdb379ef7["EpollEventLoopGroup()"] 7eca32f1_ce25_920b_6393_20a47b536826 -->|method| a59b832a_f9de_3ab5_425f_698cdb379ef7 37f7d9cb_bb16_9736_dddc_4ed8e1137e4d["setIoRatio()"] 7eca32f1_ce25_920b_6393_20a47b536826 -->|method| 37f7d9cb_bb16_9736_dddc_4ed8e1137e4d f1815b7a_07d1_0813_2817_642b80f87516["IoEventLoop()"] 7eca32f1_ce25_920b_6393_20a47b536826 -->|method| f1815b7a_07d1_0813_2817_642b80f87516
Relationship Graph
Source Code
transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollEventLoopGroup.java lines 41–201
@Deprecated
public final class EpollEventLoopGroup extends MultiThreadIoEventLoopGroup {
// This does not use static by design to ensure the class can be loaded and only do the check when its actually
// instanced.
{
// Ensure JNI is initialized by the time this class is loaded.
Epoll.ensureAvailability();
}
private static final InternalLogger LOGGER = InternalLoggerFactory.getInstance(EpollEventLoopGroup.class);
/**
* Create a new instance using the default number of threads and the default {@link ThreadFactory}.
*/
public EpollEventLoopGroup() {
this(0);
}
/**
* Create a new instance using the specified number of threads and the default {@link ThreadFactory}.
*/
public EpollEventLoopGroup(int nThreads) {
this(nThreads, (ThreadFactory) null);
}
/**
* Create a new instance using the default number of threads and the given {@link ThreadFactory}.
*/
@SuppressWarnings("deprecation")
public EpollEventLoopGroup(ThreadFactory threadFactory) {
this(0, threadFactory, 0);
}
/**
* Create a new instance using the specified number of threads and the default {@link ThreadFactory}.
*/
@SuppressWarnings("deprecation")
public EpollEventLoopGroup(int nThreads, SelectStrategyFactory selectStrategyFactory) {
this(nThreads, (ThreadFactory) null, selectStrategyFactory);
}
/**
* Create a new instance using the specified number of threads and the given {@link ThreadFactory}.
*/
@SuppressWarnings("deprecation")
public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory) {
this(nThreads, threadFactory, 0);
}
public EpollEventLoopGroup(int nThreads, Executor executor) {
this(nThreads, executor, DefaultSelectStrategyFactory.INSTANCE);
}
/**
* Create a new instance using the specified number of threads and the given {@link ThreadFactory}.
*/
@SuppressWarnings("deprecation")
public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory) {
this(nThreads, threadFactory, 0, selectStrategyFactory);
}
/**
* Create a new instance using the specified number of threads, the given {@link ThreadFactory} and the given
* maximal amount of epoll events to handle per epollWait(...).
*
* @deprecated Use {@link #EpollEventLoopGroup(int)} or {@link #EpollEventLoopGroup(int, ThreadFactory)}
*/
@Deprecated
public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce) {
this(nThreads, threadFactory, maxEventsAtOnce, DefaultSelectStrategyFactory.INSTANCE);
}
/**
* Create a new instance using the specified number of threads, the given {@link ThreadFactory} and the given
* maximal amount of epoll events to handle per epollWait(...).
*
* @deprecated Use {@link #EpollEventLoopGroup(int)}, {@link #EpollEventLoopGroup(int, ThreadFactory)}, or
* {@link #EpollEventLoopGroup(int, SelectStrategyFactory)}
*/
@Deprecated
public EpollEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce,
Source
Frequently Asked Questions
What is the EpollEventLoopGroup class?
EpollEventLoopGroup is a class in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollEventLoopGroup.java.
Where is EpollEventLoopGroup defined?
EpollEventLoopGroup is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/EpollEventLoopGroup.java at line 41.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free