Interface SmallRyeFaultToleranceConfig.StrategiesConfig.RetryConfig

Enclosing interface:
SmallRyeFaultToleranceConfig.StrategiesConfig

public static interface SmallRyeFaultToleranceConfig.StrategiesConfig.RetryConfig
  • Method Details

    • enabled

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

      @ConfigDocDefault("<empty set>") Optional<Class<? extends Throwable>[]> abortOn()
      The exception types that are not considered failures and hence should not be retried. Takes priority over retryOn().
      See Also:
      • Retry.abortOn()
    • delay

      @ConfigDocDefault("0") OptionalLong delay()
      The delay between retry attempts.
      See Also:
      • Retry.delay()
    • delayUnit

      Optional<ChronoUnit> delayUnit()
      The unit for delay().
      See Also:
      • Retry.delayUnit()
    • jitter

      @ConfigDocDefault("200 millis") OptionalLong jitter()
      The maximum jitter to apply for the delay between retry attempts. The actual delay will be in the interval [delay - jitter, delay + jitter], but will not be negative.
      See Also:
      • Retry.jitter()
    • jitterUnit

      Optional<ChronoUnit> jitterUnit()
      The unit for jitter().
      See Also:
      • Retry.jitterDelayUnit()
    • maxDuration

      @ConfigDocDefault("3 minutes") OptionalLong maxDuration()
      The maximum duration for which to retry.
      See Also:
      • Retry.maxDuration()
    • maxDurationUnit

      Optional<ChronoUnit> maxDurationUnit()
      The unit for maxDuration().
      See Also:
      • Retry.durationUnit()
    • maxRetries

      @ConfigDocDefault("3") OptionalInt maxRetries()
      The maximum number of retry attempts.
      See Also:
      • Retry.maxRetries()
    • retryOn

      @ConfigDocDefault("Exception (all exceptions)") Optional<Class<? extends Throwable>[]> retryOn()
      The exception types that are considered failures and hence should be retried.
      See Also:
      • Retry.retryOn()