Class ApiResultRetryAlgorithm<ResponseT>
java.lang.Object
com.google.cloud.bigquery.storage.v1.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 Summary
-
Constructor Summary
ConstructorDescriptionApiResultRetryAlgorithm
(BigQueryReadSettings.RetryAttemptListener retryAttemptListener) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.retrying.TimedAttemptSettings
createNextAttempt
(Throwable prevThrowable, ResponseT prevResponse, com.google.api.gax.retrying.TimedAttemptSettings prevSettings) boolean
shouldRetry
(Throwable prevThrowable, ResponseT prevResponse)
-
Field Details
-
DEADLINE_SLEEP_DURATION
public static final org.threeten.bp.Duration DEADLINE_SLEEP_DURATION
-
-
Constructor Details
-
ApiResultRetryAlgorithm
public ApiResultRetryAlgorithm() -
ApiResultRetryAlgorithm
-
-
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 interfacecom.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>
-
shouldRetry
- Specified by:
shouldRetry
in interfacecom.google.api.gax.retrying.ResultRetryAlgorithm<ResponseT>
-