public final class KQueueEventLoopGroup
extends io.netty.channel.MultithreadEventLoopGroup
| Constructor and Description |
|---|
KQueueEventLoopGroup()
Create a new instance using the default number of threads and the default
ThreadFactory. |
KQueueEventLoopGroup(int nThreads)
Create a new instance using the specified number of threads and the default
ThreadFactory. |
KQueueEventLoopGroup(int nThreads,
Executor executor) |
KQueueEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory) |
KQueueEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory,
io.netty.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler) |
KQueueEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory,
io.netty.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler,
io.netty.channel.EventLoopTaskQueueFactory queueFactory) |
KQueueEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory,
io.netty.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler,
io.netty.channel.EventLoopTaskQueueFactory taskQueueFactory,
io.netty.channel.EventLoopTaskQueueFactory tailTaskQueueFactory) |
KQueueEventLoopGroup(int nThreads,
Executor executor,
io.netty.channel.SelectStrategyFactory selectStrategyFactory) |
KQueueEventLoopGroup(int nThreads,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
Create a new instance using the specified number of threads and the default
ThreadFactory. |
KQueueEventLoopGroup(int nThreads,
ThreadFactory threadFactory)
Create a new instance using the specified number of threads and the given
ThreadFactory. |
KQueueEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
int maxEventsAtOnce)
Deprecated.
|
KQueueEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
int maxEventsAtOnce,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
|
KQueueEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
Create a new instance using the specified number of threads and the given
ThreadFactory. |
KQueueEventLoopGroup(ThreadFactory threadFactory)
Create a new instance using the default number of threads and the given
ThreadFactory. |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.channel.EventLoop |
newChild(Executor executor,
Object... args) |
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, register, registerawaitTermination, 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, isTerminatedforEach, spliteratorpublic KQueueEventLoopGroup()
ThreadFactory.public KQueueEventLoopGroup(int nThreads)
ThreadFactory.public KQueueEventLoopGroup(ThreadFactory threadFactory)
ThreadFactory.public KQueueEventLoopGroup(int nThreads,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
ThreadFactory.public KQueueEventLoopGroup(int nThreads,
ThreadFactory threadFactory)
ThreadFactory.public KQueueEventLoopGroup(int nThreads,
Executor executor)
public KQueueEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
ThreadFactory.@Deprecated public KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce)
KQueueEventLoopGroup(int) or KQueueEventLoopGroup(int, ThreadFactory)ThreadFactory and the given
maximal amount of epoll events to handle per epollWait(...).@Deprecated public KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce, io.netty.channel.SelectStrategyFactory selectStrategyFactory)
KQueueEventLoopGroup(int), KQueueEventLoopGroup(int, ThreadFactory), or
KQueueEventLoopGroup(int, SelectStrategyFactory)ThreadFactory and the given
maximal amount of epoll events to handle per epollWait(...).public KQueueEventLoopGroup(int nThreads,
Executor executor,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
public KQueueEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory)
public KQueueEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory,
io.netty.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler)
public KQueueEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory,
io.netty.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler,
io.netty.channel.EventLoopTaskQueueFactory queueFactory)
public KQueueEventLoopGroup(int nThreads,
Executor executor,
io.netty.util.concurrent.EventExecutorChooserFactory chooserFactory,
io.netty.channel.SelectStrategyFactory selectStrategyFactory,
io.netty.util.concurrent.RejectedExecutionHandler rejectedExecutionHandler,
io.netty.channel.EventLoopTaskQueueFactory taskQueueFactory,
io.netty.channel.EventLoopTaskQueueFactory tailTaskQueueFactory)
nThreads - the number of threads that will be used by this instance.executor - the Executor to use, or null if default one should be used.chooserFactory - the EventExecutorChooserFactory to use.selectStrategyFactory - the SelectStrategyFactory to use.rejectedExecutionHandler - the RejectedExecutionHandler to use.taskQueueFactory - the EventLoopTaskQueueFactory to use for
SingleThreadEventExecutor.execute(Runnable),
or null if default one should be used.tailTaskQueueFactory - the EventLoopTaskQueueFactory to use for
SingleThreadEventLoop.executeAfterEventLoopIteration(Runnable),
or null if default one should be used.Copyright © 2008–2024 The Netty Project. All rights reserved.