| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| Modifier and Type | Method and Description |
|---|---|
<T> CompletableFuture<T> |
AsyncFailsafe.future(ContextualCallable<CompletableFuture<T>> callable)
Executes the
callable asynchronously until the resulting future is successfully completed or the configured
RetryPolicy is exceeded. |
<T> T |
SyncFailsafe.get(ContextualCallable<T> callable)
Executes the
callable until a successful result is returned or the configured RetryPolicy is
exceeded. |
<T> FailsafeFuture<T> |
AsyncFailsafe.get(ContextualCallable<T> callable)
Executes the
callable asynchronously until a successful result is returned or the configured
RetryPolicy is exceeded. |
Copyright © 2017. All Rights Reserved.