- All Superinterfaces:
- FtHandler,- RuntimeType.Api<RetryConfig>
Retry supports retry policies to be applied on an execution of asynchronous tasks.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classA retry policy that prolongs the delays between retries by a defined factor.static classA retry policy that randomizes delays between execution using a "jitter" time.static interfaceRetry policy to handle delays between retries.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic RetryConfig.Builderbuilder()Create a new retry fluent API builder.static Retrycreate(RetryConfig retryConfig) Create a new retry from its configuration.static Retrycreate(Consumer<RetryConfig.Builder> builderConsumer) Create a new retry with customized configuration.longNumber of times a method called has been retried.Methods inherited from interface io.helidon.builder.api.RuntimeType.Apiprototype
- 
Field Details- 
FT_RETRY_CALLS_TOTALCounter for all the calls in a retry. Will always be greater thanFT_RETRY_RETRIES_TOTALthat only counts actual retries.- See Also:
 
- 
FT_RETRY_RETRIES_TOTALCounter for all retry calls, excluding the initial call.- See Also:
 
 
- 
- 
Method Details- 
createCreate a new retry from its configuration.- Parameters:
- retryConfig- configuration of the retry to create
- Returns:
- a new retry
 
- 
createCreate a new retry with customized configuration.- Parameters:
- builderConsumer- consumer of builder
- Returns:
- a new retry customized through builder
 
- 
builderCreate a new retry fluent API builder.- Returns:
- a new builder
 
- 
retryCounterlong retryCounter()Number of times a method called has been retried. This is a monotonically increasing counter over the lifetime of the handler.- Returns:
- number ot times a method is retried.
 
 
-