fl061157 commented on issue #9300:
URL: https://github.com/apache/dubbo/issues/9300#issuecomment-974998824
最暴力的方法。
RpcContext.getContext().setObjectAttachment(CommonConstants.TIMEOUT_KEY,
xxxxx);
try {
//
} finally {
RpcContext.getContext().removeAttachment(CommonConstants.TIMEOUT_KEY);
}
或者
ReferenceBuilder.timeout(xxx)
这个缺点是 不好动态更新。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]