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.
1 parent 91c7c82 commit d5db98cCopy full SHA for d5db98c
src/main/java/net/tascalate/concurrent/RetryPolicy.java
@@ -85,6 +85,10 @@ protected static final class PositiveVerdict implements Verdict {
85
private final DelayPolicy<? super T> backoff;
86
private final DelayPolicy<? super T> timeout;
87
88
+ public static <T> RetryPolicy<T> create() {
89
+ return new RetryPolicy<>(-1);
90
+ }
91
+
92
@SafeVarargs
93
public final RetryPolicy<T> retryOn(Class<? extends Throwable>... retryOnThrowables) {
94
return retryOn(Arrays.asList(retryOnThrowables));
0 commit comments