public abstract static class RetrySettings.Builder extends Object
RetrySettings. See the class documentation of RetrySettings for a description of the different values that can be set.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RetrySettings |
build() |
abstract org.threeten.bp.Duration |
getInitialRetryDelay()
The InitialRetryDelay parameter controls the delay before the first retry.
|
abstract org.threeten.bp.Duration |
getInitialRpcTimeout()
The InitialRpcTimeout parameter controls the timeout for the initial RPC.
|
abstract int |
getMaxAttempts()
MaxAttempts defines the maximum number of attempts to perform.
|
abstract org.threeten.bp.Duration |
getMaxRetryDelay()
The MaxRetryDelay puts a limit on the value of the retry delay, so that the
RetryDelayMultiplier can't increase the retry delay higher than this amount.
|
abstract org.threeten.bp.Duration |
getMaxRpcTimeout()
The MaxRpcTimeout puts a limit on the value of the RPC timeout, so that the
RpcTimeoutMultiplier can't increase the RPC timeout higher than this amount.
|
abstract double |
getRetryDelayMultiplier()
The RetryDelayMultiplier controls the change in retry delay.
|
abstract double |
getRpcTimeoutMultiplier()
See the class documentation of
RetrySettings for a description of what this value
does. |
abstract org.threeten.bp.Duration |
getTotalTimeout()
The TotalTimeout parameter has ultimate control over how long the logic should keep trying
the remote call until it gives up completely.
|
RetrySettings.Builder |
merge(RetrySettings.Builder newSettings) |
abstract RetrySettings.Builder |
setInitialRetryDelay(org.threeten.bp.Duration initialDelay)
The InitialRetryDelay parameter controls the delay before the first retry.
|
abstract RetrySettings.Builder |
setInitialRpcTimeout(org.threeten.bp.Duration initialTimeout)
The InitialRpcTimeout parameter controls the timeout for the initial RPC.
|
abstract RetrySettings.Builder |
setMaxAttempts(int maxAttempts)
MaxAttempts defines the maximum number of attempts to perform.
|
abstract RetrySettings.Builder |
setMaxRetryDelay(org.threeten.bp.Duration maxDelay)
The MaxRetryDelay puts a limit on the value of the retry delay, so that the
RetryDelayMultiplier can't increase the retry delay higher than this amount.
|
abstract RetrySettings.Builder |
setMaxRpcTimeout(org.threeten.bp.Duration maxTimeout)
The MaxRpcTimeout puts a limit on the value of the RPC timeout, so that the
RpcTimeoutMultiplier can't increase the RPC timeout higher than this amount.
|
abstract RetrySettings.Builder |
setRetryDelayMultiplier(double multiplier)
The RetryDelayMultiplier controls the change in retry delay.
|
abstract RetrySettings.Builder |
setRpcTimeoutMultiplier(double multiplier)
See the class documentation of
RetrySettings for a description of what this value
does. |
abstract RetrySettings.Builder |
setTotalTimeout(org.threeten.bp.Duration totalTimeout)
The TotalTimeout parameter has ultimate control over how long the logic should keep trying
the remote call until it gives up completely.
|
public abstract RetrySettings.Builder setTotalTimeout(org.threeten.bp.Duration totalTimeout)
public abstract RetrySettings.Builder setInitialRetryDelay(org.threeten.bp.Duration initialDelay)
public abstract RetrySettings.Builder setRetryDelayMultiplier(double multiplier)
public abstract RetrySettings.Builder setMaxRetryDelay(org.threeten.bp.Duration maxDelay)
public abstract RetrySettings.Builder setMaxAttempts(int maxAttempts)
public abstract RetrySettings.Builder setInitialRpcTimeout(org.threeten.bp.Duration initialTimeout)
public abstract RetrySettings.Builder setRpcTimeoutMultiplier(double multiplier)
RetrySettings for a description of what this value
does.public abstract RetrySettings.Builder setMaxRpcTimeout(org.threeten.bp.Duration maxTimeout)
public abstract org.threeten.bp.Duration getTotalTimeout()
public abstract org.threeten.bp.Duration getInitialRetryDelay()
public abstract double getRetryDelayMultiplier()
public abstract int getMaxAttempts()
public abstract org.threeten.bp.Duration getMaxRetryDelay()
public abstract org.threeten.bp.Duration getInitialRpcTimeout()
public abstract double getRpcTimeoutMultiplier()
RetrySettings for a description of what this value
does.public abstract org.threeten.bp.Duration getMaxRpcTimeout()
public RetrySettings build()
public RetrySettings.Builder merge(RetrySettings.Builder newSettings)