Uses of Class
dev.failsafe.event.ExecutionAttemptedEvent
-
Packages that use ExecutionAttemptedEvent Package Description dev.failsafe APIs for performing failsafe executions.dev.failsafe.internal -
-
Uses of ExecutionAttemptedEvent in dev.failsafe
Fields in dev.failsafe with type parameters of type ExecutionAttemptedEvent Modifier and Type Field Description (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>,java.util.concurrent.CompletableFuture<R>>
FallbackConfig. fallbackStage
(package private) EventListener<ExecutionAttemptedEvent<R>>
RetryPolicyConfig. retryListener
Methods in dev.failsafe that return types with arguments of type ExecutionAttemptedEvent Modifier and Type Method Description EventListener<ExecutionAttemptedEvent<R>>
FallbackConfig. getFailedAttemptListener()
Returns the failed attempt event listener.EventListener<ExecutionAttemptedEvent<R>>
RetryPolicyConfig. getFailedAttemptListener()
Returns the failed attempt event listener.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.EventListener<ExecutionAttemptedEvent<R>>
RetryPolicyConfig. getRetryListener()
Returns the retry event listener.Method parameters in dev.failsafe with type arguments of type ExecutionAttemptedEvent Modifier and Type Method Description static <R> FallbackBuilder<R>
Fallback. builder(CheckedConsumer<ExecutionAttemptedEvent<? extends R>> fallback)
Returns thefallback
to be executed if execution fails.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(CheckedConsumer<ExecutionAttemptedEvent<? extends 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.FallbackBuilder<R>
FallbackBuilder. onFailedAttempt(EventListener<ExecutionAttemptedEvent<R>> listener)
Registers thelistener
to be called when the last execution attempt prior to the fallback failed.RetryPolicyBuilder<R>
RetryPolicyBuilder. onFailedAttempt(EventListener<ExecutionAttemptedEvent<R>> listener)
Registers thelistener
to be called when an execution attempt fails.RetryPolicyBuilder<R>
RetryPolicyBuilder. onRetry(EventListener<ExecutionAttemptedEvent<R>> listener)
Registers thelistener
to be called when a retry is about to be attempted.Constructor parameters in dev.failsafe with type arguments of type ExecutionAttemptedEvent 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)
-
Uses of ExecutionAttemptedEvent in dev.failsafe.internal
Method parameters in dev.failsafe.internal with type arguments of type ExecutionAttemptedEvent Modifier and Type Method Description static <R> EventHandler<R>
EventHandler. ofExecutionAttempted(EventListener<ExecutionAttemptedEvent<R>> handler)
-