Module io.helidon.faulttolerance
Package io.helidon.faulttolerance
package io.helidon.faulttolerance
Helidon Fault Tolerance Support.
All handlers are fully blocking and should be executed on virtual threads.
-
ClassDescriptionRuns synchronous suppliers asynchronously using virtual threads.Bulkhead protects a resource that cannot serve unlimited parallel requests.A Bulkhead listener for queueing operations.Provides statistics during the lifetime of a bulkhead, such as concurrent executions, accepted/rejected calls and queue size.Failure because of
Bulkhead
issues, most likely that the bulkhead does not allow any more queued tasks.CircuitBreaker protects a potentially failing endpoint from overloading and the application from spending resources on those endpoints.A circuit breaker can be in any of 3 possible states as defined by this enum.Failure becauseCircuitBreaker
is open and does not accept requests.Support for checkingskipOn
andapplyOn
sets of throwables.Fallback<T>Fallback allows the user to execute an alternative function in case the provided supplier fails.System-wide fault tolerance configuration and access to a customized sequence of fault tolerance handlers.A builder used for setting up a customized list of fault tolerance handlers.A builder used for fault tolerance handlers that require a specific type to be used, such asFallback
.A fault tolerance handler.A typed fault tolerance handler, to allow combination of multiple handlers without losing type information.Retry supports retry policies to be applied on an execution of asynchronous tasks.A retry policy that prolongs the delays between retries by a defined factor.Fluent API builder forRetry.DelayingRetryPolicy
.A retry policy that randomizes delays between execution using a "jitter" time.Fluent API builder forRetry.JitterRetryPolicy
.Retry policy to handle delays between retries.Retry timeout exception.An exception class that is aRuntimeException
and is used to wrap an exception that cannot be thrown in a supplier.Helper to handle async suppliers that returnCompletionStage
.Timeout attempts to terminate execution after defined duration of time.General timeout runtime exception.