| Interface | Description |
|---|---|
| Policy<R> |
A policy for handling execution failures.
|
| Class | Description |
|---|---|
| AbstractExecution<R> |
Common execution information.
|
| AsyncExecution<R> |
Tracks asynchronous executions and allows retries to be scheduled according to a
RetryPolicy. |
| CircuitBreaker<R> |
A circuit breaker temporarily blocks execution when a configured number of failures are exceeded.
|
| DelayablePolicy<S,R> |
A policy that can be delayed between executions.
|
| Execution<R> |
Tracks executions and determines when an execution can be performed for a
RetryPolicy. |
| ExecutionContext<R> |
Contextual execution information.
|
| ExecutionResult |
The result of an execution.
|
| Failsafe |
Simple, sophisticated failure handling.
|
| FailsafeExecutor<R> |
An executor that handles failures according to configured
policies. |
| FailsafeFuture<R> |
A CompletableFuture implementation that propagates cancellations and calls completion handlers.
|
| FailurePolicy<S,R> |
A Policy that captures conditions to determine whether an execution is a failure.
|
| Fallback<R> |
A Policy that handles failures using a fallback function or result.
|
| PolicyExecutor<R,P extends Policy<R>> |
Handles execution and execution results according to a policy.
|
| PolicyListeners<S,R> |
Policy listener configuration.
|
| RetryPolicy<R> |
A policy that defines when retries should be performed.
|
| Timeout<R> |
A policy that cancels and fails an excecution with a
TimeoutExceededException if a timeout is exceeded. |
| 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 execution fails with an exception.
|
| TimeoutExceededException |
Thrown when an execution exceeds a configured
Timeout. |
Failsafe is the entry point for the library. See FailsafeExecutor
for execution options.
Copyright © 2021. All rights reserved.