Class BigQueryRetryAlgorithm<ResponseT>


  • public class BigQueryRetryAlgorithm<ResponseT>
    extends com.google.api.gax.retrying.RetryAlgorithm<ResponseT>
    • Constructor Detail

      • BigQueryRetryAlgorithm

        public BigQueryRetryAlgorithm​(com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT> resultAlgorithm,
                                      com.google.api.gax.retrying.TimedRetryAlgorithm timedAlgorithm,
                                      BigQueryRetryConfig bigQueryRetryConfig)
    • Method Detail

      • 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:
        shouldRetry in class com.google.api.gax.retrying.RetryAlgorithm<ResponseT>
        Throws:
        CancellationException
      • matchRegEx

        public static boolean matchRegEx​(String retriableRegEx,
                                         String errorDesc)
      • 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:
        createNextAttempt in class com.google.api.gax.retrying.RetryAlgorithm<ResponseT>