Class DefaultEventLoopGroup
java.lang.Object
io.netty.util.concurrent.AbstractEventExecutorGroup
io.netty.util.concurrent.MultithreadEventExecutorGroup
io.netty.channel.MultithreadEventLoopGroup
io.netty.channel.DefaultEventLoopGroup
- All Implemented Interfaces:
EventLoopGroup, EventExecutorGroup, Iterable<EventExecutor>, Executor, ExecutorService, ScheduledExecutorService
Deprecated.
MultithreadEventLoopGroup which must be used for the local transport.-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a new instance with the default number of threads.DefaultEventLoopGroup(int nThreads) Deprecated.Create a new instanceDefaultEventLoopGroup(int nThreads, Executor executor) Deprecated.Create a new instanceDefaultEventLoopGroup(int nThreads, ThreadFactory threadFactory) Deprecated.Create a new instanceDefaultEventLoopGroup(ThreadFactory threadFactory) Deprecated.Create a new instance with the default number of threads and the givenThreadFactory. -
Method Summary
Modifier and TypeMethodDescriptionprotected EventLoopDeprecated.Create a new EventExecutor which will later then accessible via theMultithreadEventExecutorGroup.next()method.Methods inherited from class MultithreadEventLoopGroup
newDefaultThreadFactory, next, 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 ExecutorService
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
DefaultEventLoopGroup
public DefaultEventLoopGroup()Deprecated.Create a new instance with the default number of threads. -
DefaultEventLoopGroup
public DefaultEventLoopGroup(int nThreads) Deprecated.Create a new instance- Parameters:
nThreads- the number of threads to use
-
DefaultEventLoopGroup
Deprecated.Create a new instance with the default number of threads and the givenThreadFactory.- Parameters:
threadFactory- theThreadFactoryornullto use the default
-
DefaultEventLoopGroup
Deprecated.Create a new instance- Parameters:
nThreads- the number of threads to usethreadFactory- theThreadFactoryornullto use the default
-
DefaultEventLoopGroup
Deprecated.Create a new instance- Parameters:
nThreads- the number of threads to useexecutor- the Executor to use, ornullif the default should be used.
-
-
Method Details
-
newChild
Deprecated.Description copied from class:MultithreadEventExecutorGroupCreate a new EventExecutor which will later then accessible via theMultithreadEventExecutorGroup.next()method. This method will be called for each thread that will serve thisMultithreadEventExecutorGroup.- Specified by:
newChildin classMultithreadEventLoopGroup- Throws:
Exception
-