public abstract class MultithreadEventLoopGroup extends MultithreadEventExecutorGroup implements EventLoopGroup
EventLoopGroup
implementations that handles their tasks with multiple threads at
the same time.限定符 | 构造器和说明 |
---|---|
protected |
MultithreadEventLoopGroup(int nThreads,
java.util.concurrent.ThreadFactory threadFactory,
java.lang.Object... args) |
限定符和类型 | 方法和说明 |
---|---|
protected java.util.concurrent.ThreadFactory |
newDefaultThreadFactory() |
EventLoop |
next()
Returns one of the
EventExecutor s 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, 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
protected MultithreadEventLoopGroup(int nThreads, java.util.concurrent.ThreadFactory threadFactory, java.lang.Object... args)
protected java.util.concurrent.ThreadFactory newDefaultThreadFactory()
public EventLoop next()
EventExecutorGroup
EventExecutor
s that belong to this group.next
在接口中 EventLoopGroup
next
在接口中 EventExecutorGroup
next
在类中 MultithreadEventExecutorGroup
public ChannelFuture register(Channel channel)
EventLoopGroup
Channel
with this EventLoop
. The returned ChannelFuture
will get notified once the registration was complete.register
在接口中 EventLoopGroup
public ChannelFuture register(Channel channel, ChannelPromise promise)
EventLoopGroup
Channel
with this EventLoop
. The passed ChannelFuture
will get notified once the registration was complete and also will get returned.register
在接口中 EventLoopGroup