We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
再还没想好该怎么处理的情况下,可以考虑打个日志,也算作一种处理。
Sorry, something went wrong.
这个地方进行了处理,如下图:
我觉得可以将请求时 CompletabeFuture 的 get() 改为使用 get(long timeout, TimeUnit unit) 来做一个累计式的超时处理,来应对网络的问题或者执行超时的问题。
超时的时候将方法返回值设置为 TimeoutExecption,来让服务调用方处理异常。但是这样的话可能每次调用都 catch 又感觉不太优雅,不知道怎么实现更好。
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: