public class BigQueryRetryAlgorithm<ResponseT>
extends com.google.api.gax.retrying.RetryAlgorithm<ResponseT>
| Constructor and Description |
|---|
BigQueryRetryAlgorithm(com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT> resultAlgorithm,
com.google.api.gax.retrying.TimedRetryAlgorithm timedAlgorithm,
BigQueryRetryConfig bigQueryRetryConfig) |
| Modifier and Type | Method and Description |
|---|---|
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) |
static boolean |
matchRegEx(String retriableRegEx,
String errorDesc) |
boolean |
shouldRetry(com.google.api.gax.retrying.RetryingContext context,
Throwable previousThrowable,
ResponseT previousResponse,
com.google.api.gax.retrying.TimedAttemptSettings nextAttemptSettings) |
public BigQueryRetryAlgorithm(com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT> resultAlgorithm, com.google.api.gax.retrying.TimedRetryAlgorithm timedAlgorithm, BigQueryRetryConfig bigQueryRetryConfig)
public boolean shouldRetry(com.google.api.gax.retrying.RetryingContext context,
Throwable previousThrowable,
ResponseT previousResponse,
com.google.api.gax.retrying.TimedAttemptSettings nextAttemptSettings)
throws CancellationException
shouldRetry in class com.google.api.gax.retrying.RetryAlgorithm<ResponseT>CancellationExceptionpublic 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)
createNextAttempt in class com.google.api.gax.retrying.RetryAlgorithm<ResponseT>Copyright © 2021 Google LLC. All rights reserved.