public class DefaultEventExecutorGroup extends MultithreadEventExecutorGroup
MultithreadEventExecutorGroup
which will use DefaultEventExecutor
instances to handle the tasks.Constructor and Description |
---|
DefaultEventExecutorGroup(int nEventExecutors)
Create a new instance.
|
DefaultEventExecutorGroup(int nEventExecutors,
Executor executor)
Create a new instance.
|
DefaultEventExecutorGroup(int nEventExecutors,
ExecutorServiceFactory executorServiceFactory)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected EventExecutor |
newChild(Executor executor,
Object... args)
Create a new EventExecutor which will later then accessible via the
MultithreadEventExecutorGroup.next() method. |
awaitTermination, children, executorCount, isShutdown, isShuttingDown, isTerminated, newDefaultExecutorService, next, shutdown, shutdownGracefully, terminationFuture
close, execute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submit
public DefaultEventExecutorGroup(int nEventExecutors)
nEventExecutors
- the number of DefaultEventExecutor
s that this group will use.public DefaultEventExecutorGroup(int nEventExecutors, Executor executor)
nEventExecutors
- the number of DefaultEventExecutor
s that this group will use.executor
- the Executor
responsible for executing the work handled by
this EventExecutorGroup
.public DefaultEventExecutorGroup(int nEventExecutors, ExecutorServiceFactory executorServiceFactory)
nEventExecutors
- the number of DefaultEventExecutor
s that this group will use.executorServiceFactory
- the ExecutorServiceFactory
which produces the Executor
responsible for executing the work handled by this EventExecutorGroup
.protected EventExecutor 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 MultithreadEventExecutorGroup
Exception
Copyright © 2008–2015 The Netty Project. All rights reserved.