- All Superinterfaces:
FtHandler
Retry supports retry policies to be applied on an execution of asynchronous tasks.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forRetry.static 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 Retry.Builderbuilder()A new builder to customizeRetryconfiguration.longNumber of times a method called has been retried.
-
Method Details
-
builder
A new builder to customizeRetryconfiguration.- 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.
-