Uses of Interface
dev.failsafe.function.CheckedSupplier
Packages that use CheckedSupplier
-
Uses of CheckedSupplier in dev.failsafe
Methods in dev.failsafe with parameters of type CheckedSupplierModifier and TypeMethodDescriptionstatic <R> FallbackBuilder<R> Fallback.builder(CheckedSupplier<? extends R> fallback) Returns thefallbackto be executed if execution fails.static <R> FallbackBuilder<R> Fallback.builderOfStage(CheckedSupplier<? extends CompletionStage<R>> fallback) Returns thefallbackto be executed if execution fails.<T extends R>
TFailsafeExecutor.get(CheckedSupplier<T> supplier) Executes thesupplieruntil a successful result is returned or the configured policies are exceeded.<T extends R>
CompletableFuture<T> FailsafeExecutor.getAsync(CheckedSupplier<T> supplier) Executes thesupplierasynchronously until a successful result is returned or the configured policies are exceeded.<T extends R>
CompletableFuture<T> FailsafeExecutor.getStageAsync(CheckedSupplier<? extends CompletionStage<T>> supplier) Executes thesupplierasynchronously until the resulting future is successfully completed or the configured policies are exceeded.static <R> Fallback<R> Fallback.of(CheckedSupplier<? extends R> fallback) Returns thefallbackto be executed if execution fails.static <R> Fallback<R> Fallback.ofStage(CheckedSupplier<? extends CompletionStage<R>> fallback) Returns thefallbackto 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)