Uses of Interface
dev.failsafe.function.CheckedFunction
Packages that use CheckedFunction
-
Uses of CheckedFunction in dev.failsafe
Fields in dev.failsafe declared as CheckedFunctionModifier and TypeFieldDescription(package private) CheckedFunction<ExecutionAttemptedEvent<R>, R> FallbackConfig.fallback(package private) CheckedFunction<ExecutionAttemptedEvent<R>, CompletableFuture<R>> FallbackConfig.fallbackStageMethods in dev.failsafe that return CheckedFunctionModifier and TypeMethodDescriptionFallbackConfig.getFallback()Returns the fallback function, elsenullif a fallback stage function was configured instead.FallbackConfig.getFallbackStage()Returns the fallback stage function, elsenullif a fallback function was configured instead.(package private) static <T,R> CheckedFunction <T, R> Functions.toFn(CheckedConsumer<T> consumer) (package private) static <T,R> CheckedFunction <T, R> Functions.toFn(CheckedRunnable runnable) (package private) static <T,R> CheckedFunction <T, R> Functions.toFn(CheckedSupplier<? extends R> supplier) (package private) static <T,R> CheckedFunction <T, R> Functions.toFn(R result) Methods in dev.failsafe with parameters of type CheckedFunctionModifier and TypeMethodDescriptionstatic <R> FallbackBuilder<R> Fallback.builder(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends R> fallback) Returns thefallbackto be executed if execution fails.static <R> FallbackBuilder<R> Fallback.builderOfException(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends Exception> fallback) Returns thefallbackto be executed if execution fails and allows an alternative exception to be supplied instead.static <R> FallbackBuilder<R> Fallback.builderOfStage(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends CompletionStage<R>> fallback) Returns thefallbackto be executed if execution fails.static <R> Fallback<R> Fallback.of(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends R> fallback) Returns thefallbackto be executed if execution fails.static <R> Fallback<R> Fallback.ofException(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends Exception> fallback) Returns thefallbackto be executed if execution fails and allows an alternative exception to be supplied instead.static <R> Fallback<R> Fallback.ofStage(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends CompletionStage<R>> fallback) Returns thefallbackto be executed if execution fails.Constructors in dev.failsafe with parameters of type CheckedFunctionModifierConstructorDescription(package private)FallbackBuilder(CheckedFunction<ExecutionAttemptedEvent<R>, R> fallback, CheckedFunction<ExecutionAttemptedEvent<R>, CompletableFuture<R>> fallbackStage) (package private)FallbackConfig(CheckedFunction<ExecutionAttemptedEvent<R>, R> fallback, CheckedFunction<ExecutionAttemptedEvent<R>, CompletableFuture<R>> fallbackStage)