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, terminationFuture
EventLoop 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.