public interface EventLoopGroup extends EventExecutorGroup
EventExecutorGroup
which allows registering Channel
s that get
processed for later selection during the event loop.Modifier and Type | Method and Description |
---|---|
EventLoop |
next()
Returns one of the
EventExecutor s managed by this EventExecutorGroup . |
ChannelFuture |
register(Channel channel)
|
ChannelFuture |
register(Channel channel,
ChannelPromise promise)
|
children, isShuttingDown, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFuture
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated
close
EventLoop next()
EventExecutorGroup
EventExecutor
s managed by this EventExecutorGroup
.next
in interface EventExecutorGroup
ChannelFuture register(Channel channel)
Channel
with an EventLoop
from this EventLoopGroup
. The returned
ChannelFuture
will get notified once the registration is completed.
It's only safe to submit a new task to the EventLoop
from within a
ChannelHandler
once the ChannelPromise
succeeded. Otherwise
the task may or may not be rejected.
ChannelFuture register(Channel channel, ChannelPromise promise)
Channel
with an EventLoop
from this EventLoopGroup
. The provided
ChannelPromise
will get notified once the registration is completed. The returned ChannelFuture
is the same ChannelPromise
that was passed to the method.
It's only safe to submit a new task to the EventLoop
from within a
ChannelHandler
once the ChannelPromise
succeeded. Otherwise
the task may or may not be rejected.
Copyright © 2008–2015 The Netty Project. All rights reserved.