Interface | Description |
---|---|
Policy<R> |
A policy for handling execution failures.
|
Class | Description |
---|---|
AbstractExecution |
Common execution information.
|
AsyncExecution |
Tracks asynchronous executions and allows retries to be scheduled according to a
RetryPolicy . |
CircuitBreaker<R> |
A circuit breaker that temporarily halts execution when configurable thresholds are exceeded.
|
DelayablePolicy<S,R> |
A policy that can be delayed between executions.
|
Execution |
Tracks executions and determines when an execution can be performed for a
RetryPolicy . |
ExecutionContext |
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<T> |
A CompletableFuture implementation that propogates 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<P extends Policy> |
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 fails an excecution with a
TimeoutExceededException
if it exceeds a timeout. |
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 © 2020. All rights reserved.