Uses of Class
dev.failsafe.FallbackBuilder
Packages that use FallbackBuilder
-
Uses of FallbackBuilder in dev.failsafe
Subclasses with type arguments of type FallbackBuilder in dev.failsafeClasses in dev.failsafe that implement interfaces with type arguments of type FallbackBuilderMethods in dev.failsafe that return FallbackBuilderModifier and TypeMethodDescriptionstatic <R> FallbackBuilder<R> Fallback.builder(FallbackConfig<R> config) Creates a new FallbackBuilder that will be based on theconfig.static <R> FallbackBuilder<R> Fallback.builder(CheckedConsumer<ExecutionAttemptedEvent<? extends R>> fallback) Returns thefallbackto be executed if execution fails.static <R> FallbackBuilder<R> Fallback.builder(CheckedFunction<ExecutionAttemptedEvent<? extends R>, ? extends R> fallback) Returns thefallbackto be executed if execution fails.static <R> FallbackBuilder<R> Fallback.builder(CheckedRunnable fallback) Returns thefallbackto be executed if execution fails.static <R> FallbackBuilder<R> Fallback.builder(CheckedSupplier<? extends R> fallback) Returns thefallbackto be executed if execution fails.static <R> FallbackBuilder<R> Fallback.builder(R fallbackResult) Returns thefallbackResultto be provided 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> FallbackBuilder<R> Fallback.builderOfStage(CheckedSupplier<? extends CompletionStage<R>> fallback) Returns thefallbackto be executed if execution fails.FallbackBuilder.onFailedAttempt(EventListener<ExecutionAttemptedEvent<R>> listener) Registers thelistenerto be called when the last execution attempt prior to the fallback failed.FallbackBuilder.withAsync()Configures the fallback to run asynchronously.