Package io.smallrye.faulttolerance.api
-
Interface Summary Interface Description CircuitBreakerMaintenance Allows reading and observing current state of circuit breakers and reseting them to the initial (closed) state.CustomBackoffStrategy For each invocation of a method annotated@Retryand@CustomBackoff, an instance of custom backoff strategy is created and used for computing delays between individual retry attempts.FaultTolerance<T> Allows guarding an action with various fault tolerance strategies: bulkhead, circuit breaker, fallback, rate limit, retry, and timeout.FaultTolerance.Builder<T,R> A builder for configuring fault tolerance strategies.FaultTolerance.Builder.BulkheadBuilder<T,R> Configures a bulkhead.FaultTolerance.Builder.CircuitBreakerBuilder<T,R> Configures a circuit breaker.FaultTolerance.Builder.FallbackBuilder<T,R> Configures a fallback.FaultTolerance.Builder.RateLimitBuilder<T,R> Configures a rate limit.FaultTolerance.Builder.RetryBuilder<T,R> Configures a retry.FaultTolerance.Builder.RetryBuilder.CustomBackoffBuilder<T,R> Configures a custom backoff for retry.FaultTolerance.Builder.RetryBuilder.ExponentialBackoffBuilder<T,R> Configures an exponential backoff for retry.FaultTolerance.Builder.RetryBuilder.FibonacciBackoffBuilder<T,R> Configures a Fibonacci backoff for retry.FaultTolerance.Builder.TimeoutBuilder<T,R> Configures a timeout.FaultToleranceSpi This is an internal API. -
Class Summary Class Description AlwaysOnException FaultToleranceSpiAccess This is an internal API.NeverOnResult -
Enum Summary Enum Description CircuitBreakerState RateLimitType Type of the time window used for rate limiting. -
Exception Summary Exception Description RateLimitException The exception thrown when an invocation exceeds the configured rate limit. -
Annotation Types Summary Annotation Type Description ApplyFaultTolerance A special interceptor binding annotation to apply preconfigured fault tolerance.AsynchronousNonBlocking Alternative to MicroProfile Fault Tolerance's@Asynchronousfor guarding non-blocking asynchronous methods (executed on the original thread).CircuitBreakerName A@CircuitBreakermethod can be annotated@CircuitBreakerNameto provide a name for the circuit breaker associated with the annotated method.CustomBackoff Modifies a@Retryannotation to use a custom backoff strategy instead of the default constant backoff.ExponentialBackoff Modifies a@Retryannotation to use exponential backoff instead of the default constant backoff.FibonacciBackoff Modifies a@Retryannotation to use Fibonacci backoff instead of the default constant backoff.RateLimit Rate limit restricts the number of invocations in a time window of some length.RetryWhen Modifies a@Retryannotation to retry when given predicate returnstrue.