Package dev.failsafe
package dev.failsafe
APIs for performing failsafe executions.
Failsafe
is the entry point for the library. See FailsafeExecutor
for execution options.
-
ClassDescriptionAllows asynchronous executions to record their results or complete an execution.AsyncExecution and AsyncExecutionInternal implementation.Bulkhead<R>A bulkhead allows you to restrict concurrent executions as a way of preventing system overload.Builds
Bulkhead
instances.Configuration for aBulkhead
.Thrown when an execution is attempted against aBulkhead
that is full.Call<R>A call that can perform Failsafe executions and can be cancelled.CallImpl<R>A call implementation that delegates to an execution.A circuit breaker temporarily blocks execution when a configured number of failures are exceeded.The state of the circuit.BuildsCircuitBreaker
instances.Configuration for aCircuitBreaker
.Thrown when an execution is attempted against aCircuitBreaker
that is open.DelayablePolicyBuilder<S,C extends DelayablePolicyConfig<R>, R> A builder of policies that can be delayed between executions.Configuration for policies that can delay between executions.Execution<R>Tracks synchronous executions and handles failures according to one or morepolicies
.Contextual execution information.Execution and ExecutionInternal implementation.Simple, sophisticated failure handling.Thrown when a synchronous Failsafe execution fails with anException
, wrapping the underlying exception.An executor that handles failures according to configuredpolicies
.FailurePolicyBuilder<S,C extends FailurePolicyConfig<R>, R> A Policy that allows configurable conditions to determine whether an execution is a failure.Configuration for policies that handle specific failures and conditions.Fallback<R>A Policy that handles failures using a fallback function or result.BuildsFallback
instances.Configuration for aFallback
.Utilities for creating and applying Failsafe executable functions.Policy<R>A policy for handling executions.PolicyBuilder<S,C extends PolicyConfig<R>, R> Builds policies.PolicyConfig<R>Configuration for aPolicy
.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.BuildsRateLimiter
instances.Configuration for aRateLimiter
.Thrown when an execution exceeds or would exceed aRateLimiter
.RetryPolicy<R>A policy that defines when retries should be performed.BuildsRetryPolicy
instances.Configuration for aRetryPolicy
.SyncExecution and SyncExecutionInternal implementation.Timeout<R>A policy that cancels and fails an excecution with aTimeoutExceededException
if a timeout is exceeded.BuildsTimeout
instances.Configuration for aTimeout
.Thrown when an execution exceeds a configuredTimeout
.