You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/11/22 01:45:59 UTC
[GitHub] [dubbo] fl061157 commented on issue #9300: 怎么设置dubbo泛化调用时,泛化调用方方法级别的超时时间?
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org