Class ApiResultRetryAlgorithm<ResponseT> (3.1.0)

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(BigQueryReadSettings.RetryAttemptListener retryAttemptListener)

public ApiResultRetryAlgorithm(BigQueryReadSettings.RetryAttemptListener retryAttemptListener)
Parameter
NameDescription
retryAttemptListenerBigQueryReadSettings.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