@BetaApi public class TimedAttemptSettings extends Object
| Constructor and Description |
|---|
TimedAttemptSettings(RetrySettings globalSettings,
org.threeten.bp.Duration retryDelay,
org.threeten.bp.Duration rpcTimeout,
org.threeten.bp.Duration randomizedRetryDelay,
int attemptCount,
long firstAttemptStartTimeNanos) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAttemptCount()
The attempt count.
|
long |
getFirstAttemptStartTimeNanos()
The start time of the first attempt.
|
RetrySettings |
getGlobalSettings()
Returns global (attempt-independent) retry settings.
|
org.threeten.bp.Duration |
getRandomizedRetryDelay()
Returns randomized attempt delay.
|
org.threeten.bp.Duration |
getRetryDelay()
Returns the calculated retry delay.
|
org.threeten.bp.Duration |
getRpcTimeout()
Returns rpc timeout used for this attempt.
|
public TimedAttemptSettings(RetrySettings globalSettings, org.threeten.bp.Duration retryDelay, org.threeten.bp.Duration rpcTimeout, org.threeten.bp.Duration randomizedRetryDelay, int attemptCount, long firstAttemptStartTimeNanos)
public RetrySettings getGlobalSettings()
public org.threeten.bp.Duration getRetryDelay()
public org.threeten.bp.Duration getRpcTimeout()
public org.threeten.bp.Duration getRandomizedRetryDelay()
retryDelay value, and is used as the actual attempt execution delay.public int getAttemptCount()
public long getFirstAttemptStartTimeNanos()
ApiClock used during the process.