Package io.netty.channel.epoll
Class EpollEventLoopGroup
- java.lang.Object
-
- 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 EpollEventLoopGroup extends MultiThreadIoEventLoopGroup
Deprecated.EventLoopGroup
which uses epoll under the covers. Because of this it only works on linux.
-
-
Constructor Summary
Constructors Constructor Description EpollEventLoopGroup()
Deprecated.Create a new instance using the default number of threads and the defaultThreadFactory
.EpollEventLoopGroup(int nThreads)
Deprecated.Create a new instance using the specified number of threads and the defaultThreadFactory
.EpollEventLoopGroup(int nThreads, SelectStrategyFactory selectStrategyFactory)
Deprecated.Create a new instance using the specified number of threads and the defaultThreadFactory
.EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor)
Deprecated.EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, SelectStrategyFactory selectStrategyFactory)
Deprecated.EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory)
Deprecated.EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler)
Deprecated.EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory queueFactory)
Deprecated.EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory taskQueueFactory, EventLoopTaskQueueFactory tailTaskQueueFactory)
Deprecated.EpollEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory)
Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory
.EpollEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, int maxEventsAtOnce)
Deprecated.EpollEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, int maxEventsAtOnce, SelectStrategyFactory selectStrategyFactory)
EpollEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory)
Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory
.EpollEventLoopGroup(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
-
EpollEventLoopGroup
public EpollEventLoopGroup()
Deprecated.Create a new instance using the default number of threads and the defaultThreadFactory
.
-
EpollEventLoopGroup
public EpollEventLoopGroup(int nThreads)
Deprecated.Create a new instance using the specified number of threads and the defaultThreadFactory
.
-
EpollEventLoopGroup
public EpollEventLoopGroup(java.util.concurrent.ThreadFactory threadFactory)
Deprecated.Create a new instance using the default number of threads and the givenThreadFactory
.
-
EpollEventLoopGroup
public EpollEventLoopGroup(int nThreads, SelectStrategyFactory selectStrategyFactory)
Deprecated.Create a new instance using the specified number of threads and the defaultThreadFactory
.
-
EpollEventLoopGroup
public EpollEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory)
Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory
.
-
EpollEventLoopGroup
public EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor)
Deprecated.
-
EpollEventLoopGroup
public EpollEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, SelectStrategyFactory selectStrategyFactory)
Deprecated.Create a new instance using the specified number of threads and the givenThreadFactory
.
-
EpollEventLoopGroup
@Deprecated public EpollEventLoopGroup(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(...).
-
EpollEventLoopGroup
@Deprecated public EpollEventLoopGroup(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(...).
-
EpollEventLoopGroup
public EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, SelectStrategyFactory selectStrategyFactory)
Deprecated.
-
EpollEventLoopGroup
public EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory)
Deprecated.
-
EpollEventLoopGroup
public EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler)
Deprecated.
-
EpollEventLoopGroup
public EpollEventLoopGroup(int nThreads, java.util.concurrent.Executor executor, EventExecutorChooserFactory chooserFactory, SelectStrategyFactory selectStrategyFactory, RejectedExecutionHandler rejectedExecutionHandler, EventLoopTaskQueueFactory queueFactory)
Deprecated.
-
EpollEventLoopGroup
public EpollEventLoopGroup(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
.
-
-