Package io.smallrye.faulttolerance.api
Interface FaultTolerance.Builder.RetryBuilder.CustomBackoffBuilder<T,R>
-
- Enclosing interface:
- FaultTolerance.Builder.RetryBuilder<T,R>
public static interface FaultTolerance.Builder.RetryBuilder.CustomBackoffBuilder<T,R>Configures a custom backoff for retry.- See Also:
@CustomBackoff
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FaultTolerance.Builder.RetryBuilder<T,R>done()Returns the original retry builder.FaultTolerance.Builder.RetryBuilder.CustomBackoffBuilder<T,R>strategy(Supplier<CustomBackoffStrategy> value)Sets the custom backoff strategy in the form of aSupplierofCustomBackoffStrategyinstances.default FaultTolerance.Builder.RetryBuilder.CustomBackoffBuilder<T,R>with(Consumer<FaultTolerance.Builder.RetryBuilder.CustomBackoffBuilder<T,R>> consumer)
-
-
-
Method Detail
-
strategy
FaultTolerance.Builder.RetryBuilder.CustomBackoffBuilder<T,R> strategy(Supplier<CustomBackoffStrategy> value)
Sets the custom backoff strategy in the form of aSupplierofCustomBackoffStrategyinstances. Mandatory.- See Also:
CustomBackoff.value()
-
done
FaultTolerance.Builder.RetryBuilder<T,R> done()
Returns the original retry builder.
-
with
default FaultTolerance.Builder.RetryBuilder.CustomBackoffBuilder<T,R> with(Consumer<FaultTolerance.Builder.RetryBuilder.CustomBackoffBuilder<T,R>> consumer)
-
-