Uses of Class
dev.failsafe.FailsafeExecutor
Packages that use FailsafeExecutor
-
Uses of FailsafeExecutor in dev.failsafe
Fields in dev.failsafe declared as FailsafeExecutorMethods in dev.failsafe that return FailsafeExecutorModifier and TypeMethodDescription<P extends Policy<R>>
FailsafeExecutor<R> FailsafeExecutor.compose
(P innerPolicy) Returns a newFailsafeExecutor
that composes the currently configured policies around the giveninnerPolicy
.static <R> FailsafeExecutor
<R> Failsafe.none()
Creates and returns a noopFailsafeExecutor
instance that treats any exception as a failure for the purposes of calling event listeners, and provides no additional failure handling.FailsafeExecutor.onComplete
(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistener
to be called when an execution is complete.FailsafeExecutor.onFailure
(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistener
to be called when an execution fails.FailsafeExecutor.onSuccess
(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistener
to be called when an execution is successful.static <R> FailsafeExecutor
<R> Creates and returns a newFailsafeExecutor
instance that will handle failures according to the givenpolicies
.static <R,
P extends Policy<R>>
FailsafeExecutor<R> Failsafe.with
(P outerPolicy, P... policies) Creates and returns a newFailsafeExecutor
instance that will handle failures according to the givenouterPolicy
andpolicies
.Configures thescheduler
to use for performing asynchronous executions and listener callbacks.Configures theexecutor
to use as a wrapper around executions.FailsafeExecutor.with
(ExecutorService executorService) Configures theexecutorService
to use for performing asynchronous executions and listener callbacks.FailsafeExecutor.with
(ScheduledExecutorService scheduledExecutorService) Configures thescheduledExecutorService
to use for performing asynchronous executions and listener callbacks.Constructors in dev.failsafe with parameters of type FailsafeExecutorModifierConstructorDescription(package private)
SyncExecutionImpl
(FailsafeExecutor<R> executor, Scheduler scheduler, CallImpl<R> call, Function<SyncExecutionInternal<R>, ExecutionResult<R>> innerFn) Create a sync execution for theexecutor
.