Class BigQueryRetryAlgorithm<ResponseT> (2.43.1)

public class BigQueryRetryAlgorithm<ResponseT> extends RetryAlgorithm<ResponseT>

Inheritance

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

Type Parameter

Name Description
ResponseT

Static Methods

matchRegEx(String retriableRegEx, String errorDesc)

public static boolean matchRegEx(String retriableRegEx, String errorDesc)
Parameters
Name Description
retriableRegEx String
errorDesc String
Returns
Type Description
boolean

Constructors

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

public BigQueryRetryAlgorithm(ResultRetryAlgorithm<ResponseT> resultAlgorithm, TimedRetryAlgorithm timedAlgorithm, BigQueryRetryConfig bigQueryRetryConfig)
Parameters
Name Description
resultAlgorithm ResultRetryAlgorithm<ResponseT>
timedAlgorithm TimedRetryAlgorithm
bigQueryRetryConfig BigQueryRetryConfig

Methods

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

public TimedAttemptSettings createNextAttempt(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings previousSettings)
Parameters
Name Description
context RetryingContext
previousThrowable Throwable
previousResponse ResponseT
previousSettings TimedAttemptSettings
Returns
Type Description
TimedAttemptSettings
Overrides

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

public boolean shouldRetry(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings nextAttemptSettings)
Parameters
Name Description
context RetryingContext
previousThrowable Throwable
previousResponse ResponseT
nextAttemptSettings TimedAttemptSettings
Returns
Type Description
boolean
Overrides
Exceptions
Type Description
CancellationException