Along with #35351, we should accept specifying maxAttempts as 0, indicating no retries at all. This is particularly useful with a placeholder along the lines of @Retryable(maxAttemptsString = "${limitedAttempts}")
that can be externally configured to turn off retries completely.
The underlying BackOff
implementations accept maxAttempts=0 already, this just needs to be relaxed in the RetryPolicy
builder itself.