We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RetryException
1 parent f3459fd commit ca62cc6Copy full SHA for ca62cc6
riptide-failsafe/README.md
@@ -77,6 +77,23 @@ RetryPolicy.<ClientHttpResponse>builder()
77
.build();
78
```
79
80
+By default, you can use RetryException in your routes to retry the request:
81
+
82
+```java
83
+retryClient.get()
84
+ .dispatch(
85
+ series(), on(CLIENT_ERROR).call(
86
+ response -> {
87
+ if (specificCondition(response)) {
88
+ throw new RetryException(response); // we will retry this one
89
+ } else {
90
+ throw new AnyOtherException(response); // we wont retry this one
91
+ }
92
93
+ )
94
+ ).join()
95
+```
96
97
Failsafe supports dynamically computed delays using a custom function.
98
99
Riptide: Failsafe offers implementations that understand:
0 commit comments