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/20 13:52:21 UTC

[GitHub] [dubbo] jgroups opened a new issue #9300: 怎么设置dubbo泛化调用时,泛化调用方方法级别的超时时间?

jgroups opened a new issue #9300:
URL: https://github.com/apache/dubbo/issues/9300


   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ## Ask your question here
   


-- 
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


[GitHub] [dubbo] jgroups commented on issue #9300: 怎么设置dubbo泛化调用时,泛化调用方方法级别的超时时间?

Posted by GitBox <gi...@apache.org>.
jgroups commented on issue #9300:
URL: https://github.com/apache/dubbo/issues/9300#issuecomment-974653700


   泛化时,$invoke 方法只有传入方法的入参,请问超时时间怎么设置?是在初始化GenericService的时候就设置好的吗?如果时,当调用$invoke时对应的方法不存在,这时候超时时间是默认取类接口级别的吗?还是有地方可以设置方法级别的超时时间?


-- 
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


[GitHub] [dubbo] fl061157 commented on issue #9300: 怎么设置dubbo泛化调用时,泛化调用方方法级别的超时时间?

Posted by GitBox <gi...@apache.org>.
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


[GitHub] [dubbo] jgroups commented on issue #9300: 怎么设置dubbo泛化调用时,泛化调用方方法级别的超时时间?

Posted by GitBox <gi...@apache.org>.
jgroups commented on issue #9300:
URL: https://github.com/apache/dubbo/issues/9300#issuecomment-974653700


   泛化时,$invoke 方法只有传入方法的入参,请问超时时间怎么设置?是在初始化GenericService的时候就设置好的吗?如果时,当调用$invoke时对应的方法不存在,这时候超时时间是默认取类接口级别的吗?还是有地方可以设置方法级别的超时时间?


-- 
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