- java.lang.Object
-
- io.helidon.config.RetryPolicies
-
public class RetryPolicies extends Object
Class provides access to built-inRetryPolicy
implementations.- See Also:
RetryPolicy
-
-
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 SimpleRetryPolicy.Builder
repeat(int retries)
Creates a new instance ofSimpleRetryPolicy.Builder
class with a number of retries as a parameter.
-
-
-
Method Detail
-
repeat
public static SimpleRetryPolicy.Builder repeat(int retries)
Creates a new instance ofSimpleRetryPolicy.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
-
-