Package io.netty.channel.kqueue
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
,java.lang.Iterable<EventExecutor>
,java.util.concurrent.Executor
,java.util.concurrent.ExecutorService
,java.util.concurrent.ScheduledExecutorService
@Deprecated public final class KQueueEventLoopGroup extends MultiThreadIoEventLoopGroup
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description KQueueEventLoopGroup()
Deprecated.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, java.util.concurrent.Executor executor)
Deprecated.KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, SelectStrategyFactory selectStrategyFactory)
Deprecated.KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory)
Deprecated.KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler)
Deprecated.KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory queueFactory)
Deprecated.KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory taskQueueFactory, EventLoopTaskQueueFactory tailTaskQueueFactory)
Deprecated.KQueueEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory)
Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory
.KQueueEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, int maxEventsAtOnce)
Deprecated.KQueueEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, int maxEventsAtOnce, SelectStrategyFactory selectStrategyFactory)
KQueueEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory)
Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory
.KQueueEventLoopGroup(java.util.concurrent.ThreadFactory threadFactory)
Deprecated.Create a new instance using the default number of threads and the givenThreadFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected IoEventLoop
newChild(java.util.concurrent.Executor executor, IoHandlerFactory ioHandlerFactory, java.lang.Object... args)
Deprecated.void
setIoRatio(int ioRatio)
Deprecated.-
Methods inherited from class io.netty.channel.MultiThreadIoEventLoopGroup
newChild, next
-
Methods inherited from class io.netty.channel.MultithreadEventLoopGroup
newDefaultThreadFactory, register, register, register
-
Methods inherited from class io.netty.util.concurrent.MultithreadEventExecutorGroup
awaitTermination, executorCount, isShutdown, isShuttingDown, isTerminated, iterator, shutdown, shutdownGracefully, terminationFuture
-
Methods inherited from class io.netty.util.concurrent.AbstractEventExecutorGroup
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.util.concurrent.EventExecutorGroup
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture
-
Methods inherited from interface io.netty.channel.EventLoopGroup
register
-
Methods inherited from interface java.util.concurrent.ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated
-
Methods inherited from interface io.netty.channel.IoEventLoopGroup
isCompatible, isIoType, register, register, register
-
-
-
-
Constructor Detail
-
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
public KQueueEventLoopGroup(java.util.concurrent.ThreadFactory threadFactory)
Deprecated.Create a new instance using the default number of threads and the givenThreadFactory
.
-
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, SelectStrategyFactory selectStrategyFactory)
Deprecated.Create a new instance using the specified number of threads and the defaultThreadFactory
.
-
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory)
Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory
.
-
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor)
Deprecated.
-
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory)
Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory
.
-
KQueueEventLoopGroup
@Deprecated public KQueueEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, int maxEventsAtOnce)
Deprecated.Create a new instance using the specified number of threads, the givenThreadFactory
and the given maximal amount of epoll events to handle per epollWait(...).
-
KQueueEventLoopGroup
@Deprecated public KQueueEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, int maxEventsAtOnce, SelectStrategyFactory selectStrategyFactory)
Deprecated.Create a new instance using the specified number of threads, the givenThreadFactory
and the given maximal amount of epoll events to handle per epollWait(...).
-
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, SelectStrategyFactory selectStrategyFactory)
Deprecated.
-
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory)
Deprecated.
-
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler)
Deprecated.
-
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory queueFactory)
Deprecated.
-
KQueueEventLoopGroup
public KQueueEventLoopGroup(int nThreads, java.util.concurrent.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, ornull
if default one should be used.chooserFactory
- theEventExecutorChooserFactory
to use.selectStrategyFactory
- theSelectStrategyFactory
to use.rejectedExecutionHandler
- theRejectedExecutionHandler
to use.taskQueueFactory
- theEventLoopTaskQueueFactory
to use forSingleThreadEventExecutor.execute(Runnable)
, ornull
if default one should be used.tailTaskQueueFactory
- theEventLoopTaskQueueFactory
to use forSingleThreadEventLoop.executeAfterEventLoopIteration(Runnable)
, ornull
if default one should be used.
-
-
Method Detail
-
setIoRatio
@Deprecated public void setIoRatio(int ioRatio)
Deprecated.This method is a no-op.
-
newChild
protected IoEventLoop newChild(java.util.concurrent.Executor executor, IoHandlerFactory ioHandlerFactory, java.lang.Object... args)
Deprecated.Description copied from class:MultiThreadIoEventLoopGroup
- Overrides:
newChild
in classMultiThreadIoEventLoopGroup
- Parameters:
executor
- theExecutor
that should be used to handle execution of tasks and IO.ioHandlerFactory
- theIoHandlerFactory
that should be used to obtainIoHandler
to handle IO.args
- extra arguments that are based by the constructor.- Returns:
- the created
IoEventLoop
.
-
-