Package io.smallrye.faulttolerance.api
Interface TypedGuard.Builder.RetryBuilder.CustomBackoffBuilder<T>
- Enclosing interface:
TypedGuard.Builder.RetryBuilder<T>
public static interface TypedGuard.Builder.RetryBuilder.CustomBackoffBuilder<T>
Configures a custom backoff for retry.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondone()Returns the original retry builder.strategy(Supplier<CustomBackoffStrategy> value) Sets the custom backoff strategy in the form of aSupplierofCustomBackoffStrategyinstances.
-
Method Details
-
strategy
TypedGuard.Builder.RetryBuilder.CustomBackoffBuilder<T> strategy(Supplier<CustomBackoffStrategy> value) Sets the custom backoff strategy in the form of aSupplierofCustomBackoffStrategyinstances. Mandatory.- See Also:
-
done
TypedGuard.Builder.RetryBuilder<T> done()Returns the original retry builder. -
with
default TypedGuard.Builder.RetryBuilder.CustomBackoffBuilder<T> with(Consumer<TypedGuard.Builder.RetryBuilder.CustomBackoffBuilder<T>> consumer)
-