diff --git a/src/main/java/org/springframework/retry/annotation/Backoff.java b/src/main/java/org/springframework/retry/annotation/Backoff.java index 6e6a136..15283f7 100644 --- a/src/main/java/org/springframework/retry/annotation/Backoff.java +++ b/src/main/java/org/springframework/retry/annotation/Backoff.java @@ -49,7 +49,8 @@ import org.springframework.retry.backoff.BackOffPolicy; public @interface Backoff { /** - * Synonym for {@link #delay()}. + * Synonym for {@link #delay()}. When {@link #delay()} is non-zero, value of this element + * is ignored, otherwise value of this element is taken. * * @return the delay in milliseconds (default 1000) */ @@ -57,8 +58,11 @@ public @interface Backoff { /** * A canonical backoff period. Used as an initial value in the exponential case, and - * as a minimum value in the uniform case. - * @return the initial or canonical backoff period in milliseconds (default 1000) + * as a minimum value in the uniform case. When the value of this element is 0, + * value of element {@link #value()} istaken, otherwise value of this + * element is taken and {@link #value()} is ignored. + * + * @return the initial or canonical backoff period in milliseconds (default 0) */ long delay() default 0;