Package io.smallrye.faulttolerance.api
Interface TypedGuard.Builder.RetryBuilder.FibonacciBackoffBuilder<T>
- Enclosing interface:
TypedGuard.Builder.RetryBuilder<T>
public static interface TypedGuard.Builder.RetryBuilder.FibonacciBackoffBuilder<T>
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
TypedGuard.Builder.RetryBuilder<T> done()Returns the original retry builder.- Returns:
- the original retry builder
-
with
default TypedGuard.Builder.RetryBuilder.FibonacciBackoffBuilder<T> with(Consumer<TypedGuard.Builder.RetryBuilder.FibonacciBackoffBuilder<T>> consumer)
-