- All Superinterfaces:
FtHandler,RuntimeType.Api<RetryConfig>
Retry supports retry policies to be applied on an execution of asynchronous tasks.
-
Nested Class Summary
Nested 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. -
Method Summary
Modifier 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.Api
prototype
-
Method Details
-
create
Create a new retry from its configuration.- Parameters:
retryConfig- configuration of the retry to create- Returns:
- a new retry
-
create
Create a new retry with customized configuration.- Parameters:
builderConsumer- consumer of builder- Returns:
- a new retry customized through builder
-
builder
Create a new retry fluent API builder.- Returns:
- a new builder
-
retryCounter
long 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.
-