ServerCnxnFactory.createFactory()
源码图?http://note.youdao.com/noteshare?id=0284e85bc556d16fefc05e7a0b30da93&sub=96485D34ADA742A0953
构建一个NettyServerCnxnFactory 对象 默认是?NIOServerCnxnFactory
NettyServerCnxnFactory?
CnxnChannelHandler channelRead()方法处理
NettyServerCncx.packetReceived() 方法处理数据包
ZookeeperServer.submitRequest()
数据请求放入队列
特别提示 LeaderZookeeperServer.setupRequestProcessors()使用的是责任链模式 处理客户端的请求
http://note.youdao.com/noteshare?id=0284e85bc556d16fefc05e7a0b30da93&sub=96485D34ADA742A0953
DEED6E118CD0
http://note.youdao.com/noteshare?id=0284e85bc556d16fefc05e7a0b30da93&sub=96485D34ADA742A0953
DEED6E118CD0