public abstract class MultithreadEventLoopGroup extends MultithreadEventExecutorGroup implements EventLoopGroup
EventLoopGroup implementations that handles their tasks with multiple threads at
the same time.| Modifier | Constructor and Description |
|---|---|
protected |
MultithreadEventLoopGroup(int nThreads,
java.util.concurrent.ThreadFactory threadFactory,
java.lang.Object... args) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.concurrent.ThreadFactory |
newDefaultThreadFactory() |
EventLoop |
next()
Returns one of the
EventExecutors that belong to this group. |
ChannelFuture |
register(Channel channel)
|
ChannelFuture |
register(Channel channel,
ChannelPromise promise)
|
awaitTermination, children, executorCount, isShutdown, isShuttingDown, isTerminated, iterator, newChild, 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, waitisShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureprotected MultithreadEventLoopGroup(int nThreads,
java.util.concurrent.ThreadFactory threadFactory,
java.lang.Object... args)
protected java.util.concurrent.ThreadFactory newDefaultThreadFactory()
newDefaultThreadFactory in class MultithreadEventExecutorGrouppublic EventLoop next()
EventExecutorGroupEventExecutors that belong to this group.next in interface EventLoopGroupnext in interface EventExecutorGroupnext in class MultithreadEventExecutorGrouppublic ChannelFuture register(Channel channel)
EventLoopGroupChannel with this EventLoop. The returned ChannelFuture
will get notified once the registration was complete.register in interface EventLoopGrouppublic ChannelFuture register(Channel channel, ChannelPromise promise)
EventLoopGroupChannel with this EventLoop. The passed ChannelFuture
will get notified once the registration was complete and also will get returned.register in interface EventLoopGroupCopyright © 2008–2018 The Netty Project. All rights reserved.