Interface SmallRyeFaultToleranceConfig.StrategiesConfig.RetryConfig
- Enclosing interface:
- SmallRyeFaultToleranceConfig.StrategiesConfig
public static interface SmallRyeFaultToleranceConfig.StrategiesConfig.RetryConfig
-
Method Summary
Modifier and TypeMethodDescriptionabortOn()The exception types that are not considered failures and hence should not be retried.delay()The delay between retry attempts.The unit fordelay().enabled()Whether the@Retrystrategy is enabled.jitter()The maximum jitter to apply for the delay between retry attempts.The unit forjitter().The maximum duration for which to retry.The unit formaxDuration().The maximum number of retry attempts.retryOn()The exception types that are considered failures and hence should be retried.
-
Method Details
-
enabled
Whether the@Retrystrategy is enabled. -
abortOn
The exception types that are not considered failures and hence should not be retried. Takes priority overretryOn().- See Also:
-
Retry.abortOn()
-
delay
The delay between retry attempts.- See Also:
-
Retry.delay()
-
delayUnit
Optional<ChronoUnit> delayUnit()The unit fordelay().- See Also:
-
Retry.delayUnit()
-
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 forjitter().- See Also:
-
Retry.jitterDelayUnit()
-
maxDuration
The maximum duration for which to retry.- See Also:
-
Retry.maxDuration()
-
maxDurationUnit
Optional<ChronoUnit> maxDurationUnit()The unit formaxDuration().- See Also:
-
Retry.durationUnit()
-
maxRetries
The maximum number of retry attempts.- See Also:
-
Retry.maxRetries()
-
retryOn
The exception types that are considered failures and hence should be retried.- See Also:
-
Retry.retryOn()
-