Package com.google.api.gax.retrying
Class TimedAttemptSettings.Builder
java.lang.Object
com.google.api.gax.retrying.TimedAttemptSettings.Builder
- Enclosing class:
- TimedAttemptSettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TimedAttemptSettingsbuild()abstract TimedAttemptSettings.BuildersetAttemptCount(int value) Set the attempt count.abstract TimedAttemptSettings.BuildersetFirstAttemptStartTimeNanos(long value) Set the start time of the first attempt.abstract TimedAttemptSettings.BuildersetGlobalSettings(RetrySettings value) Sets global (attempt-independent) retry settings.abstract TimedAttemptSettings.BuildersetOverallAttemptCount(int value) Set the overall attempt count.setRandomizedRetryDelay(org.threeten.bp.Duration value) This method is obsolete.abstract TimedAttemptSettings.BuilderSets randomized attempt delay.setRetryDelay(org.threeten.bp.Duration value) This method is obsolete.abstract TimedAttemptSettings.BuildersetRetryDelayDuration(Duration value) Sets the calculated retry delay.setRpcTimeout(org.threeten.bp.Duration value) This method is obsolete.abstract TimedAttemptSettings.BuildersetRpcTimeoutDuration(Duration value) Sets rpc timeout used for this attempt.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setGlobalSettings
Sets global (attempt-independent) retry settings. -
setRetryDelay
@ObsoleteApi("Use setRetryDelayDuration(java.time.Duration) instead") public final TimedAttemptSettings.Builder setRetryDelay(org.threeten.bp.Duration value) This method is obsolete. UsesetRetryDelayDuration(java.time.Duration)instead. -
setRetryDelayDuration
Sets the calculated retry delay. Note that the actual delay used for retry scheduling may be different (randomized, based on this value). -
setRpcTimeout
@ObsoleteApi("Use setRpcTimeoutDuration(java.time.Duration) instead") public final TimedAttemptSettings.Builder setRpcTimeout(org.threeten.bp.Duration value) This method is obsolete. UsesetRpcTimeoutDuration(java.time.Duration)instead. -
setRpcTimeoutDuration
Sets rpc timeout used for this attempt. -
setRandomizedRetryDelay
@ObsoleteApi("Use setRandomizedRetryDelayDuration(java.time.Duration) instead") public final TimedAttemptSettings.Builder setRandomizedRetryDelay(org.threeten.bp.Duration value) This method is obsolete. UsesetRandomizedRetryDelayDuration(java.time.Duration)instead. -
setRandomizedRetryDelayDuration
Sets randomized attempt delay. By default, this value is calculated based on theretryDelayvalue, and is used as the actual attempt execution delay. -
setAttemptCount
Set the attempt count. It is a zero-based value (first attempt will have this value set to 0). -
setOverallAttemptCount
Set the overall attempt count. It is a zero-based value (first attempt will have this value set to 0). -
setFirstAttemptStartTimeNanos
Set the start time of the first attempt. Note that this value is dependent on the actualApiClockused during the process. -
build
-