public static class ExponentialBackOffIntervalRetryScheduler.Builder extends AbstractRetryScheduler.Builder<ExponentialBackOffIntervalRetryScheduler.Builder>
ExponentialBackOffIntervalRetryScheduler
.
The default for the backoffFactor
is set to 100ms, and must be at least 1.
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. |
maxRetryCount, retryExecutor, validate
public 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–2020. All rights reserved.