public class DefaultEventLoopGroup extends MultithreadEventLoopGroup
MultithreadEventLoopGroup
which must be used for the local transport.Constructor and Description |
---|
DefaultEventLoopGroup()
Create a new instance with the default number of threads.
|
DefaultEventLoopGroup(int nThreads)
Create a new instance
|
DefaultEventLoopGroup(int nThreads,
Executor executor)
Create a new instance
|
DefaultEventLoopGroup(int nThreads,
ThreadFactory threadFactory)
Create a new instance
|
DefaultEventLoopGroup(ThreadFactory threadFactory)
Create a new instance with the default number of threads and the given
ThreadFactory . |
Modifier and Type | Method and Description |
---|---|
protected EventLoop |
newChild(Executor executor,
Object... args)
Create a new EventExecutor which will later then accessible via the
MultithreadEventExecutorGroup.next() method. |
newDefaultThreadFactory, next, register, register, register
awaitTermination, executorCount, isShutdown, isShuttingDown, isTerminated, iterator, shutdown, shutdownGracefully, terminationFuture
execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated
forEach, spliterator
public DefaultEventLoopGroup()
public DefaultEventLoopGroup(int nThreads)
nThreads
- the number of threads to usepublic DefaultEventLoopGroup(ThreadFactory threadFactory)
ThreadFactory
.threadFactory
- the ThreadFactory
or null
to use the defaultpublic DefaultEventLoopGroup(int nThreads, ThreadFactory threadFactory)
nThreads
- the number of threads to usethreadFactory
- the ThreadFactory
or null
to use the defaultpublic DefaultEventLoopGroup(int nThreads, Executor executor)
nThreads
- the number of threads to useexecutor
- the Executor to use, or null
if the default should be used.protected EventLoop newChild(Executor executor, Object... args) throws Exception
MultithreadEventExecutorGroup
MultithreadEventExecutorGroup.next()
method. This method will be
called for each thread that will serve this MultithreadEventExecutorGroup
.newChild
in class MultithreadEventLoopGroup
Exception
Copyright © 2008–2024 The Netty Project. All rights reserved.