public static final class RetryParams.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
RetryParams |
build()
Create an instance of RetryParams with the parameters set in this builder.
|
RetryParams.Builder |
initialRetryDelayMillis(long initialRetryDelayMillis)
Sets initialRetryDelayMillis.
|
RetryParams.Builder |
maxRetryDelayMillis(long maxRetryDelayMillis)
Sets maxRetryDelayMillis.
|
RetryParams.Builder |
retryDelayBackoffFactor(double retryDelayBackoffFactor)
Sets retryDelayBackoffFactor.
|
RetryParams.Builder |
retryMaxAttempts(int retryMaxAttempts)
Sets retryMaxAttempts.
|
RetryParams.Builder |
retryMinAttempts(int retryMinAttempts)
Sets retryMinAttempts.
|
RetryParams.Builder |
totalRetryPeriodMillis(long totalRetryPeriodMillis)
Sets totalRetryPeriodMillis.
|
public RetryParams.Builder retryMinAttempts(int retryMinAttempts)
retryMinAttempts - the retryMinAttempts to setpublic RetryParams.Builder retryMaxAttempts(int retryMaxAttempts)
retryMaxAttempts - the retryMaxAttempts to setpublic RetryParams.Builder initialRetryDelayMillis(long initialRetryDelayMillis)
initialRetryDelayMillis - the initialRetryDelayMillis to setpublic RetryParams.Builder maxRetryDelayMillis(long maxRetryDelayMillis)
maxRetryDelayMillis - the maxRetryDelayMillis to setpublic RetryParams.Builder retryDelayBackoffFactor(double retryDelayBackoffFactor)
retryDelayBackoffFactor - the retryDelayBackoffFactor to setpublic RetryParams.Builder totalRetryPeriodMillis(long totalRetryPeriodMillis)
totalRetryPeriodMillis - the totalRetryPeriodMillis to setpublic RetryParams build()
Copyright © 2016 Google. All rights reserved.