12 2018 档案

摘要:io.netty.channel.ChannelPipeline 设计原理 <!--5f39ae17-8c62-4a45-bc43-b32064c9388a:W3siYmxvY2tJZCI6Ijc0NzAtMTU0NDcxMDI3ODc5NCIsImJsb2NrVHlwZSI6InBhcmFncmF 阅读全文

posted @ 2018-12-24 23:43 自带buff 阅读(845) 评论(0) 推荐(0)

摘要:把NIO事件转换成对channel unsafe的调用或NioTask的调用 processSelectedKeys()方法是处理NIO事件的入口: private void processSelectedKeys() { if (selectedKeys != null) { processSel 阅读全文

posted @ 2018-12-18 00:07 自带buff 阅读(504) 评论(0) 推荐(0)

摘要:接口定义 io.netty.channel.EventLoopGroup extends EventExecutorGroup 方法 说明 ChannelFuture register(Channel channel) 把一个channel注册到一个EventLoop ChannelFuture r 阅读全文

posted @ 2018-12-11 00:45 自带buff 阅读(792) 评论(1) 推荐(0)

摘要:上一章讲了EventExecutorGroup的整体结构和原理,这一章我们来探究一下它的具体实现。 EventExecutorGroup和EventExecutor接口 io.netty.util.concurrent.EventExecutorGroup java.util.concurrent. 阅读全文

posted @ 2018-12-04 00:23 自带buff 阅读(948) 评论(0) 推荐(0)

导航