Interface Retry.WaitStrategy
- Enclosing interface:
Retry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy used to wait before another invocation attempt.
-
Method Summary
-
Method Details
-
await
Wait before the next attempt.An implementation that is interrupted must restore the thread interrupt status before returning or throwing. The retry invocation then terminates with
RetryOutcome.Termination.INTERRUPTED.- Parameters:
delay- proposed delay before the next attempt- Returns:
truewhen the requested wait completed and another attempt should be made,falseto terminate retries
-