Package com.google.cloud.bigquery
Class BigQueryRetryAlgorithm<ResponseT>
java.lang.Object
com.google.api.gax.retrying.RetryAlgorithm<ResponseT>
com.google.cloud.bigquery.BigQueryRetryAlgorithm<ResponseT>
-
Constructor Summary
ConstructorsConstructorDescriptionBigQueryRetryAlgorithm(ResultRetryAlgorithm<ResponseT> resultAlgorithm, TimedRetryAlgorithm timedAlgorithm, BigQueryRetryConfig bigQueryRetryConfig) -
Method Summary
Modifier and TypeMethodDescriptioncreateNextAttempt(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings previousSettings) static booleanmatchRegEx(String retriableRegEx, String errorDesc) booleanshouldRetry(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings nextAttemptSettings) Methods inherited from class com.google.api.gax.retrying.RetryAlgorithm
createFirstAttempt, createFirstAttempt, createNextAttempt, getResultAlgorithm, getTimedAlgorithm, shouldRetry
-
Constructor Details
-
BigQueryRetryAlgorithm
public BigQueryRetryAlgorithm(ResultRetryAlgorithm<ResponseT> resultAlgorithm, TimedRetryAlgorithm timedAlgorithm, BigQueryRetryConfig bigQueryRetryConfig)
-
-
Method Details
-
shouldRetry
public boolean shouldRetry(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings nextAttemptSettings) throws CancellationException - Overrides:
shouldRetryin classRetryAlgorithm<ResponseT>- Throws:
CancellationException
-
matchRegEx
-
createNextAttempt
public TimedAttemptSettings createNextAttempt(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings previousSettings) - Overrides:
createNextAttemptin classRetryAlgorithm<ResponseT>
-