Class ApiResultRetryAlgorithm<ResponseT> (2.44.1)

public class ApiResultRetryAlgorithm<ResponseT> implements ResultRetryAlgorithm<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

public static final Duration DEADLINE_SLEEP_DURATION
Field Value
TypeDescription
org.threeten.bp.Duration

Constructors

ApiResultRetryAlgorithm()

public ApiResultRetryAlgorithm()

ApiResultRetryAlgorithm(BigQueryStorageSettings.RetryAttemptListener retryAttemptListener)

public ApiResultRetryAlgorithm(BigQueryStorageSettings.RetryAttemptListener retryAttemptListener)
Parameter
NameDescription
retryAttemptListenerBigQueryStorageSettings.RetryAttemptListener

Methods

createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings)

public TimedAttemptSettings createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings)
Parameters
NameDescription
prevThrowableThrowable
prevResponseResponseT
prevSettingsTimedAttemptSettings
Returns
TypeDescription
TimedAttemptSettings

shouldRetry(Throwable prevThrowable, ResponseT prevResponse)

public boolean shouldRetry(Throwable prevThrowable, ResponseT prevResponse)
Parameters
NameDescription
prevThrowableThrowable
prevResponseResponseT
Returns
TypeDescription
boolean