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 2a867fa commit a499f37Copy full SHA for a499f37
src/main/java/net/jodah/failsafe/RetryPolicy.java
@@ -501,6 +501,10 @@ public RetryPolicy<R> withMaxAttempts(int maxAttempts) {
501
502
/**
503
* Sets the max duration to perform retries for, else the execution will be failed.
504
+ * <p>
505
+ * Note: This setting will not cause long running executions to be interrupted. For that capability, use a {@link
506
+ * Timeout} policy {@link Timeout#withCancel(boolean) withCancel} set to {@code true}.
507
+ * </p>
508
*
509
* @throws NullPointerException if {@code maxDuration} is null
510
* @throws IllegalStateException if {@code maxDuration} is <= the {@link RetryPolicy#withDelay(Duration) delay}
0 commit comments