public class NioEventLoopGroup extends MultithreadEventLoopGroup
| Constructor and Description |
|---|
NioEventLoopGroup()
Create a new instance using the default number of threads, the default
ThreadFactory and
the SelectorProvider which is returned by SelectorProvider.provider(). |
NioEventLoopGroup(int nThreads)
Create a new instance using the specified number of threads,
ThreadFactory and the
SelectorProvider which is returned by SelectorProvider.provider(). |
NioEventLoopGroup(int nThreads,
ThreadFactory threadFactory)
Create a new instance using the specified number of threads, the given
ThreadFactory and the
SelectorProvider which is returned by SelectorProvider.provider(). |
NioEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
SelectorProvider selectorProvider)
Create a new instance using the specified number of threads, the given
ThreadFactory and the given
SelectorProvider. |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.util.concurrent.EventExecutor |
newChild(ThreadFactory threadFactory,
Object... args) |
void |
rebuildSelectors()
|
void |
setIoRatio(int ioRatio)
Sets the percentage of the desired amount of time spent for I/O in the child event loops.
|
newDefaultThreadFactory, next, register, registerawaitTermination, children, executorCount, isShutdown, isShuttingDown, isTerminated, iterator, shutdown, shutdownGracefully, terminationFutureexecute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedpublic NioEventLoopGroup()
ThreadFactory and
the SelectorProvider which is returned by SelectorProvider.provider().public NioEventLoopGroup(int nThreads)
ThreadFactory and the
SelectorProvider which is returned by SelectorProvider.provider().public NioEventLoopGroup(int nThreads,
ThreadFactory threadFactory)
ThreadFactory and the
SelectorProvider which is returned by SelectorProvider.provider().public NioEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
SelectorProvider selectorProvider)
ThreadFactory and the given
SelectorProvider.public void setIoRatio(int ioRatio)
50, which means the event loop will try to spend the same amount of time for I/O as for non-I/O tasks.public void rebuildSelectors()
protected io.netty.util.concurrent.EventExecutor newChild(ThreadFactory threadFactory, Object... args) throws Exception
newChild in class io.netty.util.concurrent.MultithreadEventExecutorGroupExceptionCopyright © 2008–2014 The Netty Project. All rights reserved.