DubboInvoker中

中判断是同步还是异步
如是异步时,HeaderExchangeChannel中调用request()

new Request()中生成新的请求,每个请求都有一个Id

对应的Future 存放在Context
FutureFilter中


等异步收到响应后

再调用callback处理
同步
DubboInvoker中

调用get()

DubboInvoker中
中判断是同步还是异步
如是异步时,HeaderExchangeChannel中调用request()
new Request()中生成新的请求,每个请求都有一个Id
对应的Future 存放在Context
FutureFilter中
等异步收到响应后
再调用callback处理
DubboInvoker中
调用get()
本文标题:Dubbo同步异步调用2
本文链接:https://www.haomeiwen.com/subject/euvzeftx.html
网友评论