Netty 总结文
Netty认识
什么是Netty
Netty 简单梳理
Netty源码
Netty 示例
下面的过程分析也是根据示例的源码进行分析。
服务端实现
准备阶段
Netty 准备阶段一 BossGroup和WorkerGroup的初始化
Netty 准备阶段一 BossGroup和WorkerGroup的初始化
服务端 ServerBootstrap实例创建
Netty 准备阶段二 Channel的初始化
Netty 准备阶段三 option准备
准备阶段四 Handler
netty 准备阶段五 绑定端口
服务端建立连接前的准备
服务端建立连接
其他细节
NioEventLoop构造函数创建Selector实例工作
Netty selector开始工作——select方法
Netty 向Selector注册Channel
服务端进入就绪状态
NioEventLoop 何时开始工作
Netty wakeup 唤醒的哲学—— Netty 空轮询问题
感兴趣的事件到来——可读事件
客户端实现
建立连接
组件
BootStrap系列
AbstractBootstrap
服务端 ServerBootstrap
ServerBootstrapAcceptor
NioEventLoopGroup系列
Reactor模型
NioEventLoopGroup
MultithreadEventLoopGroup
MultithreadEventExecutorGroup
MultithreadEventExecutorGroup 构造函数重点
NioEventLoop系列
NioEventLoop
SingleThreadEventExecutor
DefaultSelectStrategy 执行策略
Channel系列
ChannelFactory
Channel
AbstractChannel
NioServerSocketChannel
ChannelOption
DefaultChannelId
Unsafe系列
netty Unsafe
NioMessageUnsafe
PipeLine系列
DefaultChannelPipeline
HandlerContext系列
AbstractChannelHandlerContext
Handler系列
ChannelInboundHandlerAdapter
SimpleChannelInboundHandler
ChannelDuplexHandler
IdleStateHandler 处理心跳机制
Netty 组件总结——梳理组件之间的关系
拓展
Selector是如何实现阻塞的?
线程
Buffer
编解码
心跳机制
网络安全
SSL
问题与场景
在问题与场景中进一步理解Netty的组件工作过程