java.lang.Object
io.helidon.config.RetryPolicies
Class provides access to built-in
RetryPolicy
implementations.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
repeat
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
An implementation that invokes the requested method just once, without any execute.- Returns:
- a default execute policy
-