随笔 - 82  文章 - 0  评论 - 51  阅读 - 16万
06 2020 档案
Netty源码学习系列之4-ServerBootstrap的bind方法
摘要:前言 今天研究ServerBootstrap的bind方法,该方法可以说是netty的重中之重、核心中的核心。前两节的NioEventLoopGroup和ServerBootstrap的初始化就是为bind做准备。照例粘贴一下这个三朝元老的demo,开始本文内容。 1 public class Ne 阅读全文
posted @ 2020-06-06 16:57 淡墨痕 阅读(2235) 评论(0) 推荐(3) 编辑
Netty源码学习系列之3-ServerBootstrap的初始化
摘要:前言 根据前文我们知道,NioEventLoopGroup和NioEventLoop是netty对Reactor线程模型的实现,而本文要说的ServerBootstrap是对上面二者的整合与调用,是一个统筹者和协调者。具体netty使用的是Reactor单线程模型还是多线程模型、抑或者主从多线程模型 阅读全文
posted @ 2020-06-01 19:55 淡墨痕 阅读(1128) 评论(1) 推荐(1) 编辑
Netty源码学习系列之2-NioEventLoopGroup的初始化
摘要:前言 NioEventLoopGroup是netty对Reactor线程组这个抽象概念的具体实现,其内部维护了一个EventExecutor数组,而NioEventLoop就是EventExecutor的实现(看名字也可发现,一个是NioEventLoopGroup,一个是NioEventLoop, 阅读全文
posted @ 2020-06-01 12:19 淡墨痕 阅读(1177) 评论(0) 推荐(1) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示