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对象。
[color=red](5)HsfConnectorImpl封装了ClientBootstrap,HsfAcceptorImpl封装了ServerBootstrap[/color]
2.Netty3.X:
(1)真正干活的类:SocketChannelFactory封装了WorkerPool(封装了AbstractNioWorker[] works,Executor),BossPool(封装了Boss[] bosses; Executor)
(2)真正干活的类:DefaultChannelPipeline封装了Channel,ChannelSink,Map<String, DefaultChannelHandlerContext> name2ctx。
(1)真正干活的类:AbstractHsfService 封装EventDispatcher(封装了HsfService ),ChannelHandler列表,Option列表,所有在线Channel, 建立连接的Channel组列表,监听器列表,flowManager(流量控制)。
(2)真正干活的类:HsfChannel封装了HsfService,futures(回调future集合),callbacks(回调callbacks集合),
(3) 真正干活的类:DispatchUpStreamHandler封装啦eventDispatcher。
(4)HsfChannel在DispatchUpStreamHandler被初始化并保存到HsfService对象。
[color=red](5)HsfConnectorImpl封装了ClientBootstrap,HsfAcceptorImpl封装了ServerBootstrap[/color]
2.Netty3.X:
(1)真正干活的类:SocketChannelFactory封装了WorkerPool(封装了AbstractNioWorker[] works,Executor),BossPool(封装了Boss[] bosses; Executor)
(2)真正干活的类:DefaultChannelPipeline封装了Channel,ChannelSink,Map<String, DefaultChannelHandlerContext> name2ctx。