public static class ExponentialBackOffIntervalRetryScheduler.Builder extends AbstractRetryScheduler.Builder<ExponentialBackOffIntervalRetryScheduler.Builder>
ExponentialBackOffIntervalRetryScheduler.
The default for maxRetryCount is set to a single retry, the backoffFactor defaults to 100ms
and the nonTransientFailurePredicate defaults to AxonNonTransientExceptionClassesPredicate.
The ScheduledExecutorService is a hard requirement and as such should be provided.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ExponentialBackOffIntervalRetryScheduler.Builder |
backoffFactor(long backoffFactor)
Sets the backoff factor in milliseconds at which to schedule a retry.
|
ExponentialBackOffIntervalRetryScheduler |
build()
Initializes a
ExponentialBackOffIntervalRetryScheduler as specified through this Builder. |
addNonTransientFailurePredicate, addNonTransientFailurePredicate, maxRetryCount, nonTransientFailurePredicate, nonTransientFailurePredicate, retryExecutor, validatepublic ExponentialBackOffIntervalRetryScheduler.Builder backoffFactor(long backoffFactor)
backoffFactor - an int specifying the interval in milliseconds at which to schedule a retrypublic ExponentialBackOffIntervalRetryScheduler build()
ExponentialBackOffIntervalRetryScheduler as specified through this Builder.ExponentialBackOffIntervalRetryScheduler as specified through this BuilderCopyright © 2010–2023. All rights reserved.