Package io.smallrye.faulttolerance.api
Interface Guard.Builder.RetryBuilder.CustomBackoffBuilder
- Enclosing interface:
Guard.Builder.RetryBuilder
public static interface Guard.Builder.RetryBuilder.CustomBackoffBuilder
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
Sets the custom backoff strategy in the form of aSupplierofCustomBackoffStrategyinstances. Mandatory.- See Also:
-
done
Guard.Builder.RetryBuilder done()Returns the original retry builder. -
with
default Guard.Builder.RetryBuilder.CustomBackoffBuilder with(Consumer<Guard.Builder.RetryBuilder.CustomBackoffBuilder> consumer)
-