Interface SmallRyeFaultToleranceConfig.StrategiesConfig.FallbackConfig

Enclosing interface:
SmallRyeFaultToleranceConfig.StrategiesConfig

public static interface SmallRyeFaultToleranceConfig.StrategiesConfig.FallbackConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<Class<? extends Throwable>[]>
    The exception types that are considered failures and hence should trigger fallback.
    Whether the @Fallback strategy is enabled.
    Optional<Class<? extends Throwable>[]>
    The exception types that are not considered failures and hence should not trigger fallback.
    Optional<Class<? extends org.eclipse.microprofile.faulttolerance.FallbackHandler<?>>>
    The class of the FallbackHandler to call on fallback.
  • Method Details

    • enabled

      @ConfigDocDefault("true") Optional<Boolean> enabled()
      Whether the @Fallback strategy is enabled.
    • applyOn

      @ConfigDocDefault("Throwable (all exceptions)") Optional<Class<? extends Throwable>[]> applyOn()
      The exception types that are considered failures and hence should trigger fallback.
      See Also:
      • Fallback.applyOn()
    • skipOn

      @ConfigDocDefault("<empty set>") Optional<Class<? extends Throwable>[]> skipOn()
      The exception types that are not considered failures and hence should not trigger fallback. Takes priority over applyOn()}.
      See Also:
      • Fallback.skipOn()
    • value

      Optional<Class<? extends org.eclipse.microprofile.faulttolerance.FallbackHandler<?>>> value()
      The class of the FallbackHandler to call on fallback.
      See Also:
      • Fallback.value()