专栏名称: 匠心零度
后端
目录
相关文章推荐
51好读  ›  专栏  ›  匠心零度

Netty(二):Netty为啥去掉支持AIO?

匠心零度  · 掘金  ·  · 2018-02-23 02:00

正文

请到「今天看啥」查看全文


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。







请到「今天看啥」查看全文