Class FaultTolerance

java.lang.Object
io.helidon.faulttolerance.FaultTolerance

public final class FaultTolerance extends Object
System-wide fault tolerance configuration and access to a customized sequence of fault tolerance handlers.

Fault tolerance provides the following features:

  • Bulkhead - limit number of parallel requests to a resource
  • CircuitBreaker - stop trying to request a failing resource until it becomes available
  • Fallback - fall back to another supplier of result in case the usual one fails
  • Retry - try to call a supplier again if invocation fails
  • Timeout - time out a request if it takes too long
See Also:
  • Field Details

    • FT_METRICS_DEFAULT_ENABLED

      public static final String FT_METRICS_DEFAULT_ENABLED
      Config key to enable metrics in Fault Tolerance. This flag can be overridden by each FT command builder. See for example BulkheadConfigBlueprint.enableMetrics(). All metrics are disabled by default.
      See Also:
  • Method Details

    • builder

      public static FaultTolerance.Builder builder()
      A builder to configure a customized sequence of fault tolerance handlers.
      Returns:
      a new builder
    • typedBuilder

      public static <T> FaultTolerance.TypedBuilder<T> typedBuilder()
      A typed builder to configure a customized sequence of fault tolerance handlers.
      Type Parameters:
      T - type of result
      Returns:
      a new builder