问题描述
在使用 Resilience4J 的 Spring Boot 应用程序中,如何使用不同的逻辑进行重试。例如:
@Retry(name = "myService")
public void send(UUID requestId) {
// The second parameter of invoke() indicates whether it's a repeat of the same requestId
downstreamService.invoke(requestId,false);
}
我想在第一次尝试时通过 false
,在重试时通过 true
。这样做的最佳方法是什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)