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