Uses of Interface
dev.failsafe.function.CheckedFunction
-
Packages that use CheckedFunction Package Description dev.failsafe APIs for performing failsafe executions. -
-
Uses of CheckedFunction in dev.failsafe
Fields in dev.failsafe declared as CheckedFunction Modifier and Type Field Description (package private) CheckedFunction<ExecutionAttemptedEvent<R>,R>
FallbackConfig. fallback
(package private) CheckedFunction<ExecutionAttemptedEvent<R>,java.util.concurrent.CompletableFuture<R>>
FallbackConfig. fallbackStage
Methods in dev.failsafe that return CheckedFunction Modifier and Type Method Description CheckedFunction<ExecutionAttemptedEvent<R>,R>
FallbackConfig. getFallback()
Returns the fallback function, elsenull
if a fallback stage function was configured instead.CheckedFunction<ExecutionAttemptedEvent<R>,java.util.concurrent.CompletableFuture<R>>
FallbackConfig. getFallbackStage()
Returns the fallback stage function, elsenull
if 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 CheckedFunction Modifier and Type Method Description static <R> FallbackBuilder<R>
Fallback. builder(CheckedFunction<ExecutionAttemptedEvent<? extends R>,? extends R> fallback)
Returns thefallback
to be executed if execution fails.static <R> FallbackBuilder<R>
Fallback. builderOfException(CheckedFunction<ExecutionAttemptedEvent<? extends R>,? extends java.lang.Exception> fallback)
Returns thefallback
to 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 java.util.concurrent.CompletionStage<R>> fallback)
Returns thefallback
to be executed if execution fails.static <R> Fallback<R>
Fallback. of(CheckedFunction<ExecutionAttemptedEvent<? extends R>,? extends R> fallback)
Returns thefallback
to be executed if execution fails.static <R> Fallback<R>
Fallback. ofException(CheckedFunction<ExecutionAttemptedEvent<? extends R>,? extends java.lang.Exception> fallback)
Returns thefallback
to 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 java.util.concurrent.CompletionStage<R>> fallback)
Returns thefallback
to be executed if execution fails.Constructors in dev.failsafe with parameters of type CheckedFunction Constructor Description FallbackBuilder(CheckedFunction<ExecutionAttemptedEvent<R>,R> fallback, CheckedFunction<ExecutionAttemptedEvent<R>,java.util.concurrent.CompletableFuture<R>> fallbackStage)
FallbackConfig(CheckedFunction<ExecutionAttemptedEvent<R>,R> fallback, CheckedFunction<ExecutionAttemptedEvent<R>,java.util.concurrent.CompletableFuture<R>> fallbackStage)
-