public abstract class MultithreadEventLoopGroup extends io.netty.util.concurrent.MultithreadEventExecutorGroup implements EventLoopGroup
EventLoopGroup
implementations that handles their tasks with multiple threads at
the same time.Modifier | Constructor and Description |
---|---|
protected |
MultithreadEventLoopGroup(int nThreads,
ThreadFactory threadFactory,
Object... args) |
Modifier and Type | Method and Description |
---|---|
protected ThreadFactory |
newDefaultThreadFactory() |
EventLoop |
next()
Return the next
EventLoop to use |
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
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated
forEach, spliterator
protected MultithreadEventLoopGroup(int nThreads, ThreadFactory threadFactory, Object... args)
MultithreadEventExecutorGroup.MultithreadEventExecutorGroup(int, ThreadFactory, Object...)
protected ThreadFactory newDefaultThreadFactory()
newDefaultThreadFactory
in class io.netty.util.concurrent.MultithreadEventExecutorGroup
public EventLoop next()
EventLoopGroup
EventLoop
to usenext
in interface EventLoopGroup
next
in interface io.netty.util.concurrent.EventExecutorGroup
next
in class io.netty.util.concurrent.MultithreadEventExecutorGroup
public ChannelFuture register(Channel channel)
EventLoopGroup
Channel
with this EventLoop
. The returned ChannelFuture
will get notified once the registration was complete.register
in interface 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
in interface EventLoopGroup
Copyright © 2008–2017 The Netty Project. All rights reserved.