Class ApiResultRetryAlgorithm<ResponseT>

java.lang.Object
com.google.cloud.bigquery.storage.v1beta2.stub.readrows.ApiResultRetryAlgorithm<ResponseT>
All Implemented Interfaces:
com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>

@InternalApi public class ApiResultRetryAlgorithm<ResponseT> extends Object implements com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>
For internal use, public for technical reasons.
  • Field Details

    • DEADLINE_SLEEP_DURATION

      public static final org.threeten.bp.Duration DEADLINE_SLEEP_DURATION
  • Constructor Details

  • Method Details

    • createNextAttempt

      public com.google.api.gax.retrying.TimedAttemptSettings createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, com.google.api.gax.retrying.TimedAttemptSettings prevSettings)
      Specified by:
      createNextAttempt in interface com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>
    • shouldRetry

      public boolean shouldRetry(Throwable prevThrowable, ResponseT prevResponse)
      Specified by:
      shouldRetry in interface com.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>