Class ApiResultRetryAlgorithm<ResponseT> (3.12.0)

publicclassApiResultRetryAlgorithm<ResponseT>implementsResultRetryAlgorithm<ResponseT>

For internal use, public for technical reasons.

Inheritance

java.lang.Object > ApiResultRetryAlgorithm<ResponseT>

Implements

com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>

Type Parameter

NameDescription
ResponseT

Static Fields

DEADLINE_SLEEP_DURATION

publicstaticfinalDurationDEADLINE_SLEEP_DURATION
Field Value
TypeDescription
Duration

Constructors

ApiResultRetryAlgorithm()

publicApiResultRetryAlgorithm()

ApiResultRetryAlgorithm(BigQueryReadSettings.RetryAttemptListener retryAttemptListener)

publicApiResultRetryAlgorithm(BigQueryReadSettings.RetryAttemptListenerretryAttemptListener)
Parameter
NameDescription
retryAttemptListenerBigQueryReadSettings.RetryAttemptListener

Methods

createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings)

publicTimedAttemptSettingscreateNextAttempt(ThrowableprevThrowable,ResponseTprevResponse,TimedAttemptSettingsprevSettings)
Parameters
NameDescription
prevThrowableThrowable
prevResponseResponseT
prevSettingsTimedAttemptSettings
Returns
TypeDescription
TimedAttemptSettings

shouldRetry(Throwable prevThrowable, ResponseT prevResponse)

publicbooleanshouldRetry(ThrowableprevThrowable,ResponseTprevResponse)
Parameters
NameDescription
prevThrowableThrowable
prevResponseResponseT
Returns
TypeDescription
boolean