为啥netty ChannelPipeline要设计成一条双链表
正好在看《Netty in Action》,有这么一段: Although we’ve been discussing decoders and encoders as distinct entities, you’ll
sometimes find it useful to manage transformations of both inbound and outbound
data and messages in one class. Netty’s abstract codec classes are useful for this pur-
pose, as each bundles together a decoder/encoder pair to handle both types of the
【为啥netty ChannelPipeline要设计成一条双链表】 operations we’ve been studying. As you might suspect, these classes implement both
ChannelInboundHandler and ChannelOutboundHandler.如果设置成两条链表,那么复杂性会大幅提高。
■网友
因为有同时关注 inBound和outBound的handler存在。
推荐阅读
- 为啥看到书柜上的藏书会有心旷神怡的感觉
- 为啥知乎上普便有一种【我在北上广深打工,所以拥有更好的视野】这样的错觉
- 为啥工商银行的用户体验如此之差
- 汽车|看了中消协4S店服务测评调查结果,终于知道法系车为啥卖不好了
- 你为啥从窝窝商城离职?
- 为啥5G和2.4G默认的BSSID是相同的
- 为啥电器实体店的价格比淘宝贵那么多
- 现在在线学习视频有很多了,为啥大部分人还是喜欢下载下来观看
- 为啥到现在你还没有女朋友 ?
- 天赐的声音|33岁张雨绮为啥总离婚?看过这些照片就明白了,都是性感惹得祸