public static class IntervalRetryScheduler.Builder extends AbstractRetryScheduler.Builder<IntervalRetryScheduler.Builder>
IntervalRetryScheduler
.
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 |
---|---|
IntervalRetryScheduler |
build()
Initializes a
IntervalRetryScheduler as specified through this Builder. |
IntervalRetryScheduler.Builder |
retryInterval(int retryInterval)
Sets the retry interval in milliseconds at which to schedule a retry.
|
addNonTransientFailurePredicate, addNonTransientFailurePredicate, maxRetryCount, nonTransientFailurePredicate, nonTransientFailurePredicate, retryExecutor, validate
public IntervalRetryScheduler.Builder retryInterval(int retryInterval)
retryInterval
- an int
specifying the retry interval in milliseconds at which to schedule a
retrypublic IntervalRetryScheduler build()
IntervalRetryScheduler
as specified through this Builder.IntervalRetryScheduler
as specified through this BuilderCopyright © 2010–2023. All rights reserved.