netty源码分析小结
2014-05-05 00:16
435 查看
先看下netty的channel对象关联关系。channel是由channelfactory来创建的,channelfactory又分为client和server两种。
channelfuture负责channel的所处状态,一个channle中关联来channelpipeline,channelpipeline则由pipelinefactory创建,
在channelpipeline中有内部类channelhandlercontext,保存channelhandler的链式结构,由channelhandler来传递channelevent,
channelevent分别有open,bind,connected,close,messagereceived等。
channelfuture负责channel的所处状态,一个channle中关联来channelpipeline,channelpipeline则由pipelinefactory创建,
在channelpipeline中有内部类channelhandlercontext,保存channelhandler的链式结构,由channelhandler来传递channelevent,
channelevent分别有open,bind,connected,close,messagereceived等。
相关文章推荐
- rhel6 dhcp dns配置小贴士
- Nubia Z5S ( 2014.6.14更新12) 中文Recovery TWRP2.7.1.3/真正触摸操作/兼容Z5S所有ROM
- ios7开发学习笔记-包括c oc 和ios介绍
- I;P : Evolution of Icon
- android Intent的startActivityForResult()方法
- netty3.2.3源码分析-ClientBootstrap启动分析
- 数位DP
- UNIX时间及相关概念
- 研磨设计模式解析及python代码实现——(二)外观模式(Facade)
- centos 6.5 minimal 安装及vm-tools安装
- 第一范式、第二范式及第三范式的定义与举例 and SQL常用函数集锦
- 关于集合的空指针问题
- python -- 常用网站
- 实战:MySQL Sending data导致查询很慢的问题详细分析
- 图论算法 填充管道
- C++单例singleton模式_legend
- tornado使用redis来实现session分布式存储 推荐
- [leetcode] Merge Two Sorted Lists
- 好玩的图形函数
- Linux下高并发socket最大连接数所受的各种限制