提交 170c87e6 编写于 作者: 武汉红喜's avatar 武汉红喜

netty

上级 554d66bf
......@@ -206,6 +206,7 @@ AbstractChannelHandlerContext,里面有next,与perv分别指向下一个或上
```
从上述方法,不难看出,ChannelPipeline的实现源码,就是沿着调用链向上或向下传播事件并执行之。
其实ChannelPipeline并没有什么高深的地方,其设计哲学就是职责链模式。
### ChannelHandlers的执行顺序
pipeline里的handlers分为两类,分别实现了ChannelInboundHandler和ChannelOutboundHandler接口。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册