Class KQueueEventLoopGroup
java.lang.Object
io.netty.util.concurrent.AbstractEventExecutorGroup
io.netty.util.concurrent.MultithreadEventExecutorGroup
io.netty.channel.MultithreadEventLoopGroup
io.netty.channel.MultiThreadIoEventLoopGroup
io.netty.channel.kqueue.KQueueEventLoopGroup
- All Implemented Interfaces:
EventLoopGroup, IoEventLoopGroup, EventExecutorGroup, Iterable<EventExecutor>, Executor, ExecutorService, ScheduledExecutorService
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a new instance using the default number of threads and the defaultThreadFactory.KQueueEventLoopGroup(int nThreads) Deprecated.Create a new instance using the specified number of threads and the defaultThreadFactory.KQueueEventLoopGroup(int nThreads, SelectStrategyFactory selectStrategyFactory) Deprecated.Create a new instance using the specified number of threads and the defaultThreadFactory.KQueueEventLoopGroup(int nThreads, Executor executor) Deprecated.KQueueEventLoopGroup(int nThreads, Executor executor, SelectStrategyFactory selectStrategyFactory) Deprecated.KQueueEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory) Deprecated.KQueueEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler) Deprecated.KQueueEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory queueFactory) Deprecated.KQueueEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory taskQueueFactory, EventLoopTaskQueueFactory tailTaskQueueFactory) Deprecated.KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory) Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory.KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce) Deprecated.KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce, SelectStrategyFactory selectStrategyFactory) KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory) Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory.KQueueEventLoopGroup(ThreadFactory threadFactory) Deprecated.Create a new instance using the default number of threads and the givenThreadFactory. -
Method Summary
Modifier and TypeMethodDescriptionprotected IoEventLoopnewChild(Executor executor, IoHandlerFactory ioHandlerFactory, Object... args) Deprecated.voidsetIoRatio(int ioRatio) Deprecated.Methods inherited from class MultiThreadIoEventLoopGroup
newChild, nextMethods inherited from class MultithreadEventLoopGroup
newDefaultThreadFactory, register, register, registerMethods inherited from class MultithreadEventExecutorGroup
activeExecutorCount, awaitTermination, executorCount, executorUtilizations, isShutdown, isShuttingDown, isTerminated, iterator, shutdown, shutdownGracefully, terminationFutureMethods inherited from class AbstractEventExecutorGroup
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submitMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EventExecutorGroup
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture, tickerMethods inherited from interface EventLoopGroup
registerMethods inherited from interface ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedMethods inherited from interface IoEventLoopGroup
isCompatible, isIoType, register, register, registerMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
KQueueEventLoopGroup
public KQueueEventLoopGroup()Deprecated.Create a new instance using the default number of threads and the defaultThreadFactory. -
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads) Deprecated.Create a new instance using the specified number of threads and the defaultThreadFactory. -
KQueueEventLoopGroup
Deprecated.Create a new instance using the default number of threads and the givenThreadFactory. -
KQueueEventLoopGroup
Deprecated.Create a new instance using the specified number of threads and the defaultThreadFactory. -
KQueueEventLoopGroup
Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory. -
KQueueEventLoopGroup
Deprecated. -
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory) Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory. -
KQueueEventLoopGroup
@Deprecated public KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce) Deprecated.Create a new instance using the specified number of threads, the givenThreadFactoryand the given maximal amount of epoll events to handle per epollWait(...). -
KQueueEventLoopGroup
@Deprecated public KQueueEventLoopGroup(int nThreads, ThreadFactory threadFactory, int maxEventsAtOnce, SelectStrategyFactory selectStrategyFactory) Deprecated.Create a new instance using the specified number of threads, the givenThreadFactoryand the given maximal amount of epoll events to handle per epollWait(...). -
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, Executor executor, SelectStrategyFactory selectStrategyFactory) Deprecated. -
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory) Deprecated. -
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler) Deprecated. -
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory queueFactory) Deprecated. -
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory taskQueueFactory, EventLoopTaskQueueFactory tailTaskQueueFactory) Deprecated.- Parameters:
nThreads- the number of threads that will be used by this instance.executor- the Executor to use, ornullif default one should be used.chooserFactory- theEventExecutorChooserFactoryto use.selectStrategyFactory- theSelectStrategyFactoryto use.rejectedExecutionHandler- theRejectedExecutionHandlerto use.taskQueueFactory- theEventLoopTaskQueueFactoryto use forSingleThreadEventExecutor.execute(Runnable), ornullif default one should be used.tailTaskQueueFactory- theEventLoopTaskQueueFactoryto use forSingleThreadEventLoop.executeAfterEventLoopIteration(Runnable), ornullif default one should be used.
-
-
Method Details
-
setIoRatio
-
newChild
protected IoEventLoop newChild(Executor executor, IoHandlerFactory ioHandlerFactory, Object... args) Deprecated.Description copied from class:MultiThreadIoEventLoopGroup- Overrides:
newChildin classMultiThreadIoEventLoopGroup- Parameters:
executor- theExecutorthat should be used to handle execution of tasks and IO.ioHandlerFactory- theIoHandlerFactorythat should be used to obtainIoHandlerto handle IO.args- extra arguments that are based by the constructor.- Returns:
- the created
IoEventLoop.
-
MultiThreadIoEventLoopGroupwithKQueueIoHandler.newFactory().