InitialRetryDelay controls the delay before the first retry. Subsequent retries will use this
value adjusted according to the RetryDelayMultiplier. The default value is
Duration.ZERO.
Returns
Type
Description
org.threeten.bp.Duration
getInitialRpcTimeout()
publicabstractDurationgetInitialRpcTimeout()
InitialRpcTimeout controls the timeout for the initial RPC. Subsequent calls will use this
value adjusted according to the RpcTimeoutMultiplier. The default value is
Duration.ZERO.
Returns
Type
Description
org.threeten.bp.Duration
getMaxAttempts()
publicabstractintgetMaxAttempts()
MaxAttempts defines the maximum number of attempts to perform. The default value is
0. If this value is greater than 0, and the number of attempts reaches this limit, the logic
will give up retrying even if the total retry time is still lower than TotalTimeout.
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. The default value is
Duration.ZERO.
Returns
Type
Description
org.threeten.bp.Duration
getMaxRpcTimeout()
publicabstractDurationgetMaxRpcTimeout()
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.
Returns
Type
Description
org.threeten.bp.Duration
getRetryDelayMultiplier()
publicabstractdoublegetRetryDelayMultiplier()
RetryDelayMultiplier controls the change in retry delay. The retry delay of the previous call
is multiplied by the RetryDelayMultiplier to calculate the retry delay for the next call. The
default value is 1.0.
TotalTimeout has ultimate control over how long the logic should keep trying the remote call
until it gives up completely. The higher the total timeout, the more retries can be
attempted. The default value is Duration.ZERO.
Returns
Type
Description
org.threeten.bp.Duration
isJittered()
publicabstractbooleanisJittered()
Jitter determines if the delay time should be randomized. In most cases, if jitter is set to
true the actual delay time is calculated in the following way:
InitialRetryDelay controls the delay before the first retry. Subsequent retries will use this
value adjusted according to the RetryDelayMultiplier. The default value is
Duration.ZERO.
InitialRpcTimeout controls the timeout for the initial RPC. Subsequent calls will use this
value adjusted according to the RpcTimeoutMultiplier. The default value is
Duration.ZERO.
Configures the timeout settings with the given timeout such that the logical call will take
no longer than the given timeout and each RPC attempt will use only the time remaining in the
logical call as a timeout.
Using this method in conjunction with individual RetrySettings timeout field
setters is not advised, because only the order in which they are invoked determines which
setter is respected.
MaxAttempts defines the maximum number of attempts to perform. The default value is
0. If this value is greater than 0, and the number of attempts reaches this limit, the logic
will give up retrying even if the total retry time is still lower than TotalTimeout.
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. The default value is
Duration.ZERO.
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. The default value is
Duration.ZERO.
RetryDelayMultiplier controls the change in retry delay. The retry delay of the previous call
is multiplied by the RetryDelayMultiplier to calculate the retry delay for the next call. The
default value is 1.0.
TotalTimeout has ultimate control over how long the logic should keep trying the remote call
until it gives up completely. The higher the total timeout, the more retries can be
attempted. The default value is Duration.ZERO.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-08 UTC."],[],[]]