| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| 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<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.
|
Copyright © 2021. All rights reserved.