-
- All Superinterfaces:
FtHandler
public interface Retry extends FtHandler
Retry supports retry policies to be applied on an execution of asynchronous tasks.In case you call the
FtHandler.invokeMulti(java.util.function.Supplier)
method, the following restriction applies:- In case at least one record was sent (one
onNext
was called), the retry will not trigger.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Retry.Builder
Fluent API builder forRetry
.static class
Retry.DelayingRetryPolicy
A retry policy that prolongs the delays between retries by a defined factor.static class
Retry.ExponentialRetryPolicy
A retry policy that increases the delay time following an exponential sequence.static class
Retry.FibonacciRetryPolicy
A retry policy that increases the delay time following the Fibonacci sequence.static class
Retry.JitterRetryPolicy
A retry policy that randomizes delays between execution using a "jitter" time.static interface
Retry.RetryPolicy
Retry policy to handle delays between retries.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Retry.Builder
builder()
A new builder to customizeRetry
configuration.long
retryCounter()
Number of times a method called has been retried.-
Methods inherited from interface io.helidon.faulttolerance.FtHandler
invoke, invokeMulti, name
-
-
-
-
Method Detail
-
builder
static Retry.Builder builder()
A new builder to customizeRetry
configuration.- 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.
-
-