Uses of Interface
dev.failsafe.Fallback
Packages that use Fallback
-
Uses of Fallback in dev.failsafe
Methods in dev.failsafe that return FallbackModifier and TypeMethodDescriptionFallbackBuilder.build()Builds a newFallbackusing the builder's configuration.Fallback.none()Returns a fallback that will return a null if execution fails.static <R> Fallback<R> Fallback.of(CheckedConsumer<ExecutionAttemptedEvent<? extends 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.of(CheckedRunnable fallback) Returns thefallbackto be executed if execution fails.static <R> Fallback<R> Fallback.of(CheckedSupplier<? extends R> fallback) Returns thefallbackto be executed if execution fails.static <R> Fallback<R> Fallback.of(R fallbackResult) Returns thefallbackResultto be provided 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.static <R> Fallback<R> Fallback.ofStage(CheckedSupplier<? extends CompletionStage<R>> fallback) Returns thefallbackto be executed if execution fails. -
Uses of Fallback in dev.failsafe.internal
Classes in dev.failsafe.internal that implement FallbackFields in dev.failsafe.internal declared as Fallback