GeezerVison is showing netty.io — NioEventLoopGroup (Netty API Reference (4.1.141.Final))
Class NioEventLoopGroup
-
Constructor Summary
Constructors
-
Method Summary
Modifier and Type
Method
Description
void
Replaces the current Selectors of the child event loops with newly created Selectors to work
around the infamous epoll 100% CPU bug.
void
Sets the percentage of the desired amount of time spent for I/O in the child event loops.
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
Modifier and Type
Method
Description
void
<T> T
<T> T
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NioEventLoopGroup
public NioEventLoopGroup()
-
NioEventLoopGroup
public NioEventLoopGroup(int nThreads)
-
-
NioEventLoopGroup
public NioEventLoopGroup(int nThreads,
ThreadFactory threadFactory)
-
NioEventLoopGroup
public NioEventLoopGroup(int nThreads,
Executor executor)
-
-
-
-
-
-
-
-
-
Method Details
-
setIoRatio
public void setIoRatio(int ioRatio)
Sets the percentage of the desired amount of time spent for I/O in the child event loops. The default value is
50, which means the event loop will try to spend the same amount of time for I/O as for non-I/O tasks.
-
rebuildSelectors
public void rebuildSelectors()
Replaces the current Selectors of the child event loops with newly created Selectors to work
around the infamous epoll 100% CPU bug.
-
|