| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends R> |
FailsafeExecutor.get(CheckedSupplier<T> supplier)
Executes the
supplier until a successful result is returned or the configured policies are exceeded. |
<T extends R> |
FailsafeExecutor.getAsync(CheckedSupplier<T> supplier)
Executes the
supplier asynchronously until a successful result is returned or the configured policies are
exceeded. |
<T extends R> |
FailsafeExecutor.getStageAsync(CheckedSupplier<? extends CompletionStage<T>> supplier)
Executes the
supplier asynchronously until the resulting future is successfully completed or the configured
policies are exceeded. |
static <R> Fallback<R> |
Fallback.of(CheckedSupplier<? extends R> fallback)
Returns the
fallback to be executed if execution fails. |
static <R> Fallback<R> |
Fallback.ofAsync(CheckedSupplier<? extends R> fallback)
Returns the
fallback to be executed asynchronously if execution fails. |
Copyright © 2019. All rights reserved.