Package io.helidon.config
Class RetryPolicies
- java.lang.Object
-
- io.helidon.config.RetryPolicies
-
public class RetryPolicies extends Object
Class provides access to built-inRetryPolicy
implementations.- See Also:
RetryPolicy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RetryPolicies.Builder
A builder of the defaultRetryPolicy
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RetryPolicy
justCall()
An implementation that invokes the requested method just once, without any execute.static RetryPolicies.Builder
repeat(int retries)
Creates a new instance ofRetryPolicies.Builder
class with a number of retries as a parameter.
-
-
-
Method Detail
-
repeat
public static RetryPolicies.Builder repeat(int retries)
Creates a new instance ofRetryPolicies.Builder
class with a number of retries as a parameter.The default values are:
- delay: 200ms
- delayFactor: 2.0
- callTimeout: 500ms
- overallTimeout: 2s
- executor:
single-threaded scheduled executor
The default
RetryPolicy
isjustCall()
.- Parameters:
retries
- a number of retries, excluding the first call- Returns:
- a new builder
-
justCall
public static RetryPolicy justCall()
An implementation that invokes the requested method just once, without any execute.- Returns:
- a default execute policy
-
-