public interface Delay
RetryPolicy
Modifier and Type | Method and Description |
---|---|
Promise<java.time.Duration> |
delay(java.lang.Integer attempt)
Builds a promise wrapping a duration that will instruct the caller how long to wait between retries.
|
Promise<java.time.Duration> delay(java.lang.Integer attempt)
attempt
- current retry attempt to provide sophisticated delay strategies