Interface | Description |
---|---|
AsyncExecution<R> |
Allows asynchronous executions to record their results or complete an execution.
|
Bulkhead<R> |
A bulkhead allows you to restrict concurrent executions as a way of preventing system overload.
|
Call<R> |
A call that can perform Failsafe executions and can be cancelled.
|
CircuitBreaker<R> |
A circuit breaker temporarily blocks execution when a configured number of failures are exceeded.
|
Execution<R> |
Tracks synchronous executions and handles failures according to one or more
policies . |
ExecutionContext<R> |
Contextual execution information.
|
Fallback<R> |
A Policy that handles failures using a fallback function or result.
|
Policy<R> |
A policy for handling executions.
|
PolicyListeners<S,R> |
Configures listeners for a policy execution result.
|
RateLimiter<R> |
A rate limiter allows you to control the rate of executions as a way of preventing system overload.
|
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. |
Class | Description |
---|---|
BulkheadBuilder<R> |
Builds
Bulkhead instances. |
BulkheadConfig<R> |
Configuration for a
Bulkhead . |
CircuitBreakerBuilder<R> |
Builds
CircuitBreaker instances. |
CircuitBreakerConfig<R> |
Configuration for a
CircuitBreaker . |
DelayablePolicyBuilder<S,C extends DelayablePolicyConfig<R>,R> |
A builder of policies that can be delayed between executions.
|
DelayablePolicyConfig<R> |
Configuration for policies that can delay between executions.
|
Failsafe |
Simple, sophisticated failure handling.
|
FailsafeExecutor<R> |
An executor that handles failures according to configured
policies . |
FailurePolicyBuilder<S,C extends FailurePolicyConfig<R>,R> |
A Policy that allows configurable conditions to determine whether an execution is a failure.
|
FailurePolicyConfig<R> |
Configuration for policies that handle specific failures and conditions.
|
FallbackBuilder<R> |
Builds
Fallback instances. |
FallbackConfig<R> |
Configuration for a
Fallback . |
PolicyBuilder<S,C extends PolicyConfig<R>,R> |
Builds policies.
|
PolicyConfig<R> |
Configuration for a
Policy . |
RateLimiterBuilder<R> |
Builds
RateLimiter instances. |
RateLimiterConfig<R> |
Configuration for a
RateLimiter . |
RetryPolicyBuilder<R> |
Builds
RetryPolicy instances. |
RetryPolicyConfig<R> |
Configuration for a
RetryPolicy . |
TimeoutBuilder<R> |
Builds
Timeout instances. |
TimeoutConfig<R> |
Configuration for a
Timeout . |
Enum | Description |
---|---|
CircuitBreaker.State |
The state of the circuit.
|
Exception | Description |
---|---|
BulkheadFullException |
Thrown when an execution is attempted against a
Bulkhead that is full. |
CircuitBreakerOpenException |
Thrown when an execution is attempted against a
CircuitBreaker that is open. |
FailsafeException |
Thrown when a synchronous Failsafe execution fails with an
Exception , wrapping the underlying exception. |
RateLimitExceededException |
Thrown when an execution exceeds or would exceed a
RateLimiter . |
TimeoutExceededException |
Thrown when an execution exceeds a configured
Timeout . |
Failsafe
is the entry point for the library. See FailsafeExecutor
for execution options.
Copyright © 2022. All rights reserved.