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 newFailsafeExecutorthat composes the currently configured policies around the giveninnerPolicy.static <R> FailsafeExecutor<R> Failsafe.none()Creates and returns a noopFailsafeExecutorinstance 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 thelistenerto be called when an execution is complete.FailsafeExecutor.onFailure(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistenerto be called when an execution fails.FailsafeExecutor.onSuccess(EventListener<ExecutionCompletedEvent<R>> listener) Registers thelistenerto be called when an execution is successful.static <R> FailsafeExecutor<R> Creates and returns a newFailsafeExecutorinstance 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 newFailsafeExecutorinstance that will handle failures according to the givenouterPolicyandpolicies.Configures theschedulerto use for performing asynchronous executions and listener callbacks.Configures theexecutorto use as a wrapper around executions.FailsafeExecutor.with(ExecutorService executorService) Configures theexecutorServiceto use for performing asynchronous executions and listener callbacks.FailsafeExecutor.with(ScheduledExecutorService scheduledExecutorService) Configures thescheduledExecutorServiceto 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.