public interface EventLoopGroup extends EventExecutorGroup
EventExecutorGroup ,它允许注册Channel ,在事件循环期间进行处理以供稍后选择。
| Modifier and Type | Method and Description |
|---|---|
EventLoop |
next()
返回下一个 EventLoop使用
|
ChannelFuture |
register(Channel channel)
|
ChannelFuture |
register(Channel channel, ChannelPromise promise)
已过时。
改为使用
register(ChannelPromise) 。
|
ChannelFuture |
register(ChannelPromise promise)
使用 ChannelFuture与此EventLoop注册一个Channel 。
|
isShuttingDown, iterator, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, shutdown, shutdownGracefully, shutdownGracefully, shutdownNow, submit, submit, submit, terminationFutureEventLoop next()
EventLoop使用
next在界面
EventExecutorGroup
ChannelFuture register(Channel channel)
Channel这个EventLoop 。
一旦注册完成,返回的ChannelFuture将会收到通知。
ChannelFuture register(ChannelPromise promise)
ChannelFuture通过此EventLoop注册Channel 。
一旦注册完成并且将返回,通过的ChannelFuture将会收到通知。
@Deprecated ChannelFuture register(Channel channel, ChannelPromise promise)
register(ChannelPromise) 。
Channel这个EventLoop 。
一旦注册完成后,通过的ChannelFuture将会收到通知,并且会返回。
Copyright © 2008–2018 The Netty Project. All rights reserved.