| Interface | Description |
|---|---|
| RetryPolicy.DelayFunction<R,F extends Throwable> |
A functional interface for computing delays between retries in conjunction with
RetryPolicy.withDelay(DelayFunction). |
| Class | Description |
|---|---|
| AsyncExecution |
Tracks asynchronous executions and allows retries to be scheduled according to a
RetryPolicy. |
| AsyncFailsafe<R> |
Performs asynchronous executions with failures handled according to a configured
retry
policy, circuit breaker and
fallback. |
| AsyncFailsafeConfig<R,F> |
Async Failsafe configuration.
|
| CircuitBreaker |
A circuit breaker that temporarily halts execution when configurable thresholds are exceeded.
|
| Execution |
Tracks executions and determines when an execution can be performed for a
RetryPolicy. |
| ExecutionContext |
Contextual execution information.
|
| Failsafe |
Simple, sophisticated failure handling.
|
| FailsafeConfig<R,F> |
Failsafe configuration.
|
| FailsafeFuture<T> |
The future result of an asynchronous Failsafe execution.
|
| Listeners<R> |
Failsafe execution event listeners.
|
| RetryPolicy |
A policy that defines when retries should be performed.
|
| SyncFailsafe<R> |
Performs synchronous executions with failures handled according to a configured
retry
policy, circuit breaker and
fallback. |
| Enum | Description |
|---|---|
| CircuitBreaker.State |
The state of the circuit.
|
| Exception | Description |
|---|---|
| CircuitBreakerOpenException |
Thrown when an execution is attempted while a configured CircuitBreaker is open.
|
| FailsafeException |
Thrown when a synchronous Failsafe run() call fails with an exception.
|
Failsafe is the entry point for the library. See SyncFailsafe
for synchronous execution options and AsyncFailsafe for asynchronous execution.
Copyright © 2018. All rights reserved.