Module io.helidon.faulttolerance
Package io.helidon.faulttolerance
Class Retry.DelayingRetryPolicy.Builder
java.lang.Object
io.helidon.faulttolerance.Retry.DelayingRetryPolicy.Builder
- All Implemented Interfaces:
Builder<Retry.DelayingRetryPolicy.Builder,
,Retry.DelayingRetryPolicy> Supplier<Retry.DelayingRetryPolicy>
- Enclosing class:
Retry.DelayingRetryPolicy
public static class Retry.DelayingRetryPolicy.Builder
extends Object
implements Builder<Retry.DelayingRetryPolicy.Builder,Retry.DelayingRetryPolicy>
Fluent API builder for
Retry.DelayingRetryPolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.calls
(int calls) Total number of calls (first + retries).Base delay between the invocations.delayFactor
(double delayFactor) A delay multiplication factor.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<Retry.DelayingRetryPolicy.Builder,
Retry.DelayingRetryPolicy> - Returns:
- instance of the built type
-
calls
Total number of calls (first + retries).- Parameters:
calls
- how many times to call the method- Returns:
- updated builder instance
-
delay
Base delay between the invocations.- Parameters:
delay
- delay between the invocations- Returns:
- updated builder instance
-
delayFactor
A delay multiplication factor.- Parameters:
delayFactor
- a delay multiplication factor- Returns:
- updated builder instance
-