public static class IntervalRetryScheduler.Builder extends AbstractRetryScheduler.Builder<IntervalRetryScheduler.Builder>
IntervalRetryScheduler
.
The default for retryInterval
is set to 100ms, while maxRetryCount
gets a single retry.
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.
|
maxRetryCount, 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–2020. All rights reserved.