| Package | Description |
|---|---|
| net.jodah.failsafe |
Core Failsafe APIs for performing failsafe executions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CircuitBreaker.onClose(CheckedRunnable runnable)
Calls the
runnable when the circuit is closed. |
void |
CircuitBreaker.onHalfOpen(CheckedRunnable runnable)
Calls the
runnable when the circuit is half-opened. |
void |
CircuitBreaker.onOpen(CheckedRunnable runnable)
Calls the
runnable when the circuit is opened. |
void |
SyncFailsafe.run(CheckedRunnable runnable)
Executes the
runnable until successful or until the configured RetryPolicy is exceeded. |
FailsafeFuture<Void> |
AsyncFailsafe.run(CheckedRunnable runnable)
Executes the
runnable asynchronously until successful or until the configured RetryPolicy is
exceeded. |
F |
FailsafeConfig.withFallback(CheckedRunnable fallback)
Configures the
fallback action to be executed if execution fails. |
Copyright © 2017. All Rights Reserved.