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