Package io.smallrye.faulttolerance.api
Interface Guard.Builder.RetryBuilder.FibonacciBackoffBuilder
- Enclosing interface:
Guard.Builder.RetryBuilder
public static interface Guard.Builder.RetryBuilder.FibonacciBackoffBuilder
Configures a Fibonacci backoff for retry.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondone()Returns the original retry builder.maxDelay(long value, ChronoUnit unit) Sets the maximum delay between retries.
-
Method Details
-
maxDelay
Sets the maximum delay between retries. Defaults to 1 minute.- Parameters:
value- the maximum delay, must be >= 0unit- the maximum delay unit, must not benull- Returns:
- this fibonacci backoff builder
- See Also:
-
done
Guard.Builder.RetryBuilder done()Returns the original retry builder.- Returns:
- the original retry builder
-
with
-