Class BigQueryRetryAlgorithm<ResponseT> (2.35.0)

public class BigQueryRetryAlgorithm<ResponseT> extends RetryAlgorithm<ResponseT>

Inheritance

java.lang.Object > RetryAlgorithm > BigQueryRetryAlgorithm<ResponseT>

Type Parameter

NameDescription
ResponseT

Static Methods

matchRegEx(String retriableRegEx, String errorDesc)

public static boolean matchRegEx(String retriableRegEx, String errorDesc)
Parameters
NameDescription
retriableRegExString
errorDescString
Returns
TypeDescription
boolean

Constructors

BigQueryRetryAlgorithm(ResultRetryAlgorithm<ResponseT> resultAlgorithm, TimedRetryAlgorithm timedAlgorithm, BigQueryRetryConfig bigQueryRetryConfig)

public BigQueryRetryAlgorithm(ResultRetryAlgorithm<ResponseT> resultAlgorithm, TimedRetryAlgorithm timedAlgorithm, BigQueryRetryConfig bigQueryRetryConfig)
Parameters
NameDescription
resultAlgorithmResultRetryAlgorithm<ResponseT>
timedAlgorithmTimedRetryAlgorithm
bigQueryRetryConfigBigQueryRetryConfig

Methods

createNextAttempt(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings previousSettings)

public TimedAttemptSettings createNextAttempt(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings previousSettings)
Parameters
NameDescription
contextRetryingContext
previousThrowableThrowable
previousResponseResponseT
previousSettingsTimedAttemptSettings
Returns
TypeDescription
TimedAttemptSettings
Overrides

shouldRetry(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings nextAttemptSettings)

public boolean shouldRetry(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings nextAttemptSettings)
Parameters
NameDescription
contextRetryingContext
previousThrowableThrowable
previousResponseResponseT
nextAttemptSettingsTimedAttemptSettings
Returns
TypeDescription
boolean
Overrides
Exceptions
TypeDescription
CancellationException