Interface SmallRyeFaultToleranceConfig.StrategiesConfig.RetryWhenConfig

Enclosing interface:
SmallRyeFaultToleranceConfig.StrategiesConfig

public static interface SmallRyeFaultToleranceConfig.StrategiesConfig.RetryWhenConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    Whether the @RetryWhen strategy is enabled.
    Class of the predicate that will be used to determine whether the invocation should be retried if the guarded method has thrown an exception.
    Class of the predicate that will be used to determine whether the invocation should be retried if the guarded method has returned a result.
  • Method Details

    • enabled

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

      @ConfigDocDefault("AlwaysOnException") Optional<Class<? extends Predicate<Throwable>>> exception()
      Class of the predicate that will be used to determine whether the invocation should be retried if the guarded method has thrown an exception.
      See Also:
      • RetryWhen.exception()
    • result

      @ConfigDocDefault("NeverOnResult") Optional<Class<? extends Predicate<Object>>> result()
      Class of the predicate that will be used to determine whether the invocation should be retried if the guarded method has returned a result.
      See Also:
      • RetryWhen.result()