| 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<Object> 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<Object> future)
Performs potentially asynchronous post-execution handling for a
result. |
protected Supplier<CompletableFuture<ExecutionResult>> |
PolicyExecutor.supplyAsync(Supplier<CompletableFuture<ExecutionResult>> supplier,
Scheduler scheduler,
FailsafeFuture<Object> future)
Performs an async execution by first doing an optional pre-execute, calling the next executor, else scheduling the
executor's supplier, then finally doing an async post-execute.
|
FailsafeExecutor<R> |
FailsafeExecutor.with(Scheduler scheduler)
Configures the
scheduler to use for performing asynchronous executions and listener callbacks. |
| Modifier and Type | Method and Description |
|---|---|
static Scheduler |
Scheduler.of(ExecutorService executor)
Returns a Scheduler adapted from the
executor. |
static Scheduler |
Scheduler.of(ScheduledExecutorService executor)
Returns a Scheduler adapted from the
executor. |
Copyright © 2019. All rights reserved.