public abstract class MultithreadEventLoopGroup extends MultithreadEventExecutorGroup implements EventLoopGroup
EventExecutorGroup implementations that handles their tasks with multiple threads at
the same time.| Modifier | Constructor and Description |
|---|---|
protected |
MultithreadEventLoopGroup(int nThreads,
Executor executor,
Object... args) |
protected |
MultithreadEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract EventLoop |
newChild(Executor executor,
Object... args)
Create a new EventExecutor which will later then accessible via the
MultithreadEventExecutorGroup.next() method. |
protected ThreadFactory |
newDefaultThreadFactory() |
EventLoop |
next()
Returns one of the
EventExecutors managed by this EventExecutorGroup. |
awaitTermination, children, executorCount, isShutdown, isShuttingDown, isTerminated, shutdown, shutdownGracefully, terminationFutureexecute, invokeAll, invokeAll, invokeAny, invokeAny, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdownGracefully, shutdownNow, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchildren, isShuttingDown, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedprotected MultithreadEventLoopGroup(int nThreads,
Executor executor,
Object... args)
MultithreadEventExecutorGroup#MultithreadEventExecutorGroup(int, Executor, Object...)}protected MultithreadEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
Object... args)
MultithreadEventExecutorGroup#MultithreadEventExecutorGroup(int, ThreadFactory, Object...)}protected ThreadFactory newDefaultThreadFactory()
newDefaultThreadFactory in class MultithreadEventExecutorGrouppublic EventLoop next()
EventExecutorGroupEventExecutors managed by this EventExecutorGroup.next in interface EventLoopGroupnext in interface EventExecutorGroupnext in class MultithreadEventExecutorGroupprotected abstract EventLoop newChild(Executor executor, Object... args) throws Exception
MultithreadEventExecutorGroupMultithreadEventExecutorGroup.next() method. This method will be
called for each thread that will serve this MultithreadEventExecutorGroup.newChild in class MultithreadEventExecutorGroupExceptionCopyright © 2008–2013 The Netty Project. All rights reserved.