Class ApiResultRetryAlgorithm<ResponseT> (3.9.3)

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

Name Description
ResponseT

Static Fields

DEADLINE_SLEEP_DURATION

public static final Duration DEADLINE_SLEEP_DURATION
Field Value
Type Description
org.threeten.bp.Duration

Constructors

ApiResultRetryAlgorithm()

public ApiResultRetryAlgorithm()

ApiResultRetryAlgorithm(BigQueryStorageSettings.RetryAttemptListener retryAttemptListener)

public ApiResultRetryAlgorithm(BigQueryStorageSettings.RetryAttemptListener retryAttemptListener)
Parameter
Name Description
retryAttemptListener BigQueryStorageSettings.RetryAttemptListener

Methods

createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings)

public TimedAttemptSettings createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings)
Parameters
Name Description
prevThrowable Throwable
prevResponse ResponseT
prevSettings TimedAttemptSettings
Returns
Type Description
TimedAttemptSettings

shouldRetry(Throwable prevThrowable, ResponseT prevResponse)

public boolean shouldRetry(Throwable prevThrowable, ResponseT prevResponse)
Parameters
Name Description
prevThrowable Throwable
prevResponse ResponseT
Returns
Type Description
boolean