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
Bulkheadinstances.Configuration for aBulkhead.Thrown when an execution is attempted against aBulkheadthat 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.BuildsCircuitBreakerinstances.Configuration for aCircuitBreaker.Thrown when an execution is attempted against aCircuitBreakerthat 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.BuildsFallbackinstances.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.BuildsRateLimiterinstances.Configuration for aRateLimiter.Thrown when an execution exceeds or would exceed aRateLimiter.RetryPolicy<R>A policy that defines when retries should be performed.BuildsRetryPolicyinstances.Configuration for aRetryPolicy.SyncExecution and SyncExecutionInternal implementation.Timeout<R>A policy that cancels and fails an excecution with aTimeoutExceededExceptionif a timeout is exceeded.BuildsTimeoutinstances.Configuration for aTimeout.Thrown when an execution exceeds a configuredTimeout.