Interface RetryConfig
public interface RetryConfig
-
Method Summary
Modifier and TypeMethodDescriptionabortOn()The list of exception types that should not trigger a retry.longdelay()The delay between retries.The unit fordelay().The duration unit formaxDuration().longjitter()Jitter value to randomly vary retry delays for.The delay unit forjitter().longThe max duration.intMax number of retries.retryOn()The list of exception types that should trigger a retry.
-
Method Details
-
maxRetries
@WithDefault("-1") int maxRetries()Max number of retries.- See Also:
-
Retry.maxRetries()
-
delay
@WithDefault("0") long delay()The delay between retries.- See Also:
-
Retry.delay()
-
delayUnit
The unit fordelay(). Default milliseconds.- See Also:
-
Retry.delayUnit()
-
maxDuration
@WithDefault("180000") long maxDuration()The max duration.- See Also:
-
Retry.maxDuration()
-
durationUnit
The duration unit formaxDuration().Milliseconds by default.
- See Also:
-
Retry.durationUnit()
-
jitter
@WithDefault("200") long jitter()Jitter value to randomly vary retry delays for.- See Also:
-
Retry.jitter()
-
jitterDelayUnit
The delay unit forjitter(). Default is milliseconds.- See Also:
-
Retry.jitterDelayUnit()
-
retryOn
@WithDefault("io.quarkiverse.kafkastreamsprocessor.api.exception.RetryableException") List<Class<? extends Throwable>> retryOn()The list of exception types that should trigger a retry.Default is the extension's RetryableException
- See Also:
-
Retry.retryOn()
-
abortOn
The list of exception types that should not trigger a retry.Default is empty list
- See Also:
-
Retry.abortOn()
-