public class BigQueryRetryAlgorithm<ResponseT> extends RetryAlgorithm<ResponseT>
Type Parameter
Name | Description |
ResponseT |
Static Methods
matchRegEx(String retriableRegEx, String errorDesc)
public static boolean matchRegEx(String retriableRegEx, String errorDesc)
Name | Description |
retriableRegEx | String |
errorDesc | String |
Type | Description |
boolean |
Constructors
BigQueryRetryAlgorithm(ResultRetryAlgorithm<ResponseT> resultAlgorithm, TimedRetryAlgorithm timedAlgorithm, BigQueryRetryConfig bigQueryRetryConfig)
public BigQueryRetryAlgorithm(ResultRetryAlgorithm<ResponseT> resultAlgorithm, TimedRetryAlgorithm timedAlgorithm, BigQueryRetryConfig bigQueryRetryConfig)
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)
Name | Description |
context | RetryingContext |
previousThrowable | Throwable |
previousResponse | ResponseT |
previousSettings | TimedAttemptSettings |
Type | Description |
TimedAttemptSettings |
shouldRetry(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings nextAttemptSettings)
public boolean shouldRetry(RetryingContext context, Throwable previousThrowable, ResponseT previousResponse, TimedAttemptSettings nextAttemptSettings)
Name | Description |
context | RetryingContext |
previousThrowable | Throwable |
previousResponse | ResponseT |
nextAttemptSettings | TimedAttemptSettings |
Type | Description |
boolean |
Type | Description |
CancellationException |