Uses of Class
dev.failsafe.event.ExecutionAttemptedEvent
Packages that use ExecutionAttemptedEvent
-
Uses of ExecutionAttemptedEvent in dev.failsafe
Fields in dev.failsafe with type parameters of type ExecutionAttemptedEventModifier and TypeFieldDescription(package private) EventListener<ExecutionAttemptedEvent<R>> FallbackConfig.failedAttemptListener(package private) EventListener<ExecutionAttemptedEvent<R>> RetryPolicyConfig.failedAttemptListener(package private) CheckedFunction<ExecutionAttemptedEvent<R>, R> FallbackConfig.fallback(package private) CheckedFunction<ExecutionAttemptedEvent<R>, CompletableFuture<R>> FallbackConfig.fallbackStage(package private) EventListener<ExecutionAttemptedEvent<R>> RetryPolicyConfig.retryListenerMethods in dev.failsafe that return types with arguments of type ExecutionAttemptedEventModifier and TypeMethodDescriptionFallbackConfig.getFailedAttemptListener()Returns the failed attempt event listener.RetryPolicyConfig.getFailedAttemptListener()Returns the failed attempt event listener.FallbackConfig.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.RetryPolicyConfig.getRetryListener()Returns the retry event listener.Method parameters in dev.failsafe with type arguments of type ExecutionAttemptedEventModifier and TypeMethodDescriptionstatic <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.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(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.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.FallbackBuilder.onFailedAttempt(EventListener<ExecutionAttemptedEvent<R>> listener) Registers thelistenerto be called when the last execution attempt prior to the fallback failed.RetryPolicyBuilder.onFailedAttempt(EventListener<ExecutionAttemptedEvent<R>> listener) Registers thelistenerto be called when an execution attempt fails.RetryPolicyBuilder.onRetry(EventListener<ExecutionAttemptedEvent<R>> listener) Registers thelistenerto be called when a retry is about to be attempted.Constructor parameters in dev.failsafe with type arguments of type ExecutionAttemptedEventModifierConstructorDescription(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) -
Uses of ExecutionAttemptedEvent in dev.failsafe.internal
Method parameters in dev.failsafe.internal with type arguments of type ExecutionAttemptedEventModifier and TypeMethodDescriptionstatic <R> EventHandler<R> EventHandler.ofExecutionAttempted(EventListener<ExecutionAttemptedEvent<R>> handler)