Package io.helidon.nima.faulttolerance
package io.helidon.nima.faulttolerance
Fault tolerance for Helidon Níma.
All handlers are fully blocking and should be executed on virtual threads.
-
ClassDescriptionRuns synchronous suppliers asynchronously using virtual threads.Fluent API Builder for
Async.Bulkhead protects a resource that cannot serve unlimited parallel requests.Fluent API builder forBulkhead.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 ofBulkheadissues, 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.Fluent API builder forCircuitBreaker.A circuit breaker can be in any of 3 possible states as defined by this enum.Failure becauseCircuitBreakeris open and does not accept requests.Fallback<T>Fallback allows the user to execute an alternative function in case the provided supplier fails.Fluent API builder forFallback.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.Fluent API builder forRetry.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 aRuntimeExceptionand 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.Fluent API builder forTimeout.General timeout runtime exception.