Package io.smallrye.faulttolerance.api
package io.smallrye.faulttolerance.api
-
ClassDescriptionA special interceptor binding annotation to apply preconfigured fault tolerance.Alternative to MicroProfile Fault Tolerance's
@Asynchronous
for guarding non-blocking asynchronous methods (executed on the original thread).Defines a handler or method that should be called before any retry, but not before the initial attempt.For each retry attempt, a new instance of the handler is created by the CDI container.Allows reading and observing current state of circuit breakers and reseting them to the initial (closed) state.A@CircuitBreaker
method can be annotated@CircuitBreakerName
to provide a name for the circuit breaker associated with the annotated method.Modifies a@Retry
annotation to use a custom backoff strategy instead of the default constant backoff.For each invocation of a method annotated@Retry
and@CustomBackoff
, an instance of custom backoff strategy is created and used for computing delays between individual retry attempts.Modifies a@Retry
annotation to use exponential backoff instead of the default constant backoff.Allows guarding an action with various fault tolerance strategies: bulkhead, circuit breaker, fallback, rate limit, retry, and timeout.A builder for configuring fault tolerance strategies.Configures a bulkhead.Configures a circuit breaker.Configures a fallback.Configures a rate limit.Configures a retry.Configures a custom backoff for retry.Configures an exponential backoff for retry.Configures a Fibonacci backoff for retry.Configures a timeout.This is an internal API.This is an internal API.Modifies a@Retry
annotation to use Fibonacci backoff instead of the default constant backoff.Rate limit restricts the number of invocations in a time window of some length.The exception thrown when an invocation exceeds the configured rate limit.Type of the time window used for rate limiting.Modifies a@Retry
annotation to retry when given predicate returnstrue
.