1. summercool-hsf 的核心类包括:AbstractHsfService 和 HsfChannel,EventDispatcher,DispatchUpStreamHandler。
(1)真正干活的类:AbstractHsfService 封装EventDispatcher(封装了HsfService ),ChannelHandler列表,Option列表,所有在线Channel, 建立连接的Channel组列表,监听器列表,flowManager(流量控制)。
(2)真正干活的类:HsfChannel封装了HsfService,futures(回调future集合),callbacks(回调callbacks集合),
(3) 真正干活的类:DispatchUpStreamHandler封装啦eventDispatcher。
(4)HsfChannel在DispatchUpStreamHandler被初始化并保存到HsfService对象。
(5)HsfConnectorImpl封装了ClientBootstrap,HsfAcceptorImpl封装了ServerBootstrap
2.Netty3.X:
(1)真正干活的类:SocketChannelFactory封装了WorkerPool(封装了AbstractNioWorker[] works,Executor),BossPool(封装了Boss[] bosses; Executor)
(2)真正干活的类:DefaultChannelPipeline封装了Channel,ChannelSink,Map<String, DefaultChannelHandlerContext> name2ctx。
分享到:
相关推荐
笔者工作的这几年之中,总结并开发了如下几个框架: summercool(Web 框架,已经应用于某国内大型网络公司的等重要应用)、summercool-hsf(基于Netty实现的RPC框架,已经应用国内某移动互联网公司)、 summercool-...
summercool-hsf Automatically exported from code.google.com/p/summercool-hsf 1.目前为止性能最高的RPC远程通讯框架 2.也可以做为手机长连接的Server,经测试已经达到了50W以上的性能长连接 (需调整linux内核...
summercool-ddlAutomatically exported from code.google.com/p/summercool-ddl基于mybatis的分表分库框架
summercool-ddl Automatically exported from code.google.com/p/summercool-ddl 学习了解使用!
笔者工作的这几年之中,总结并开发了如下几个框架: summercool( Web框架,已经应用于某国内大型网络公司的等重要应用)、summercool-hsf(基于Netty实现的RPC框架,已经应用国内某移动互联网公司)、summercool-...