activemq5.8.0 客户端,服务端启动序列图




服务端序列图



客户端序列图




客户端与服务端交互







transport:责任链模式,

ResponseCorrelator:oneway设置消息的编号,onCommand:对阻塞的futureResponse设置值,解除等待结果的线程阻塞。

MutexTransport:通过锁进行线程同步

WireFormatNegotiator:通过闭锁协调wireFormat与服务端的交互

InactivityMonitor:启动readcheck  writecheck定时任务,维护心跳

TcpTransport tcp协议的业务处理,写入流,输出流


ActiveMQConnection:
负责处理客户端接受到的command

TransportConnection
负责处理服务端接受到的command

猜你喜欢

转载自dingjun1.iteye.com/blog/1890810
今日推荐