static <R> FallbackBuilder<R> |
Fallback.builder(CheckedSupplier<? extends R> fallback) |
Returns the fallback to be executed if execution fails.
|
static <R> FallbackBuilder<R> |
Fallback.builderOfStage(CheckedSupplier<? extends java.util.concurrent.CompletionStage<R>> fallback) |
Returns the fallback to be executed if execution fails.
|
<T extends R> T |
FailsafeExecutor.get(CheckedSupplier<T> supplier) |
Executes the supplier until a successful result is returned or the configured policies are exceeded.
|
<T extends R> java.util.concurrent.CompletableFuture<T> |
FailsafeExecutor.getAsync(CheckedSupplier<T> supplier) |
Executes the supplier asynchronously until a successful result is returned or the configured policies are
exceeded.
|
<T extends R> java.util.concurrent.CompletableFuture<T> |
FailsafeExecutor.getStageAsync(CheckedSupplier<? extends java.util.concurrent.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.ofStage(CheckedSupplier<? extends java.util.concurrent.CompletionStage<R>> fallback) |
Returns the fallback to be executed if execution fails.
|
(package private) static <R,T> ContextualSupplier<R,T> |
Functions.toCtxSupplier(CheckedSupplier<T> supplier) |
|
(package private) static <T,R> CheckedFunction<T,R> |
Functions.toFn(CheckedSupplier<? extends R> supplier) |
|