- java.lang.Object
-
- io.helidon.config.RetryPolicies
-
public class RetryPolicies extends Object
Class provides access to built-inRetryPolicyimplementations.- See Also:
RetryPolicy
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RetryPolicyjustCall()An implementation that invokes the requested method just once, without any execute.static SimpleRetryPolicy.Builderrepeat(int retries)Creates a new instance ofSimpleRetryPolicy.Builderclass with a number of retries as a parameter.
-
-
-
Method Detail
-
repeat
public static SimpleRetryPolicy.Builder repeat(int retries)
Creates a new instance ofSimpleRetryPolicy.Builderclass 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
RetryPolicyisjustCall().- 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
-
-