正文
Will handle all the I/O operations for a
Channel
once registered. One
EventLoop
instance will usually handle more than one
Channel
but this may depend on implementation details
and internals.
Netty中这样定义EventLoopGroup的,本篇重点不在这里,后续继续介绍EventLoopGroup。
Special
EventExecutorGroup
which allows registering
Channel
s that get processed for later selection during the event loop.
Netty中这样定义Channel的,本篇重点不在这里,后续继续介绍Channel。
A nexus to a network socket or a component which is capable of I/O operations such as read, write, connect, and bind.
A channel provides a user:
-
the current state of the channel (e.g. is it open? is it connected?),
-
the configuration parameters of the channel (e.g. receive buffer size),
-
the I/O operations that the channel supports (e.g. read, write, connect, and bind), and
-
the
ChannelPipeline
which handles all I/O events and requests associated with the channel.
Netty中这样定义ChannelFuture的,本篇重点不在这里,后续继续介绍ChannelFuture。