| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| net.jodah.failsafe.util.concurrent |
Concurrent utilities.
|
| Modifier and Type | Method and Description |
|---|---|
protected CompletableFuture<ExecutionResult> |
PolicyExecutor.onFailureAsync(ExecutionResult result,
Scheduler scheduler,
FailsafeFuture<R> future)
Performs potentially asynchrononus post-execution handling for a failed
result, possibly creating a new
result, else returning the original result. |
protected CompletableFuture<ExecutionResult> |
PolicyExecutor.postExecuteAsync(ExecutionResult result,
Scheduler scheduler,
FailsafeFuture<R> future)
Performs potentially asynchronous post-execution handling for a
result. |
protected Supplier<ExecutionResult> |
PolicyExecutor.supply(Supplier<ExecutionResult> supplier,
Scheduler scheduler)
Performs an execution by calling pre-execute else calling the supplier and doing a post-execute.
|
protected Supplier<CompletableFuture<ExecutionResult>> |
PolicyExecutor.supplyAsync(Supplier<CompletableFuture<ExecutionResult>> supplier,
Scheduler scheduler,
FailsafeFuture<R> future)
Performs an async execution by calling pre-execute else calling the supplier and doing a post-execute.
|
FailsafeExecutor<R> |
FailsafeExecutor.with(Scheduler scheduler)
Configures the
scheduler to use for performing asynchronous executions and listener callbacks. |
| Modifier and Type | Field and Description |
|---|---|
static Scheduler |
Scheduler.DEFAULT
The default scheduler used by Failsafe if no other scheduler or
ScheduledExecutorService is configured for
an execution. |
| Modifier and Type | Method and Description |
|---|---|
static Scheduler |
Scheduler.of(Executor executor)
Returns a Scheduler adapted from the
executor. |
static Scheduler |
Scheduler.of(ScheduledExecutorService executor)
Returns a Scheduler adapted from the
executor. |
Copyright © 2021. All rights reserved.