Class ApiResultRetryAlgorithm<ResponseT>
java.lang.Object
com.google.cloud.bigquery.storage.v1.stub.readrows.ApiResultRetryAlgorithm<ResponseT>
- All Implemented Interfaces:
ResultRetryAlgorithm<ResponseT>
@InternalApi
public class ApiResultRetryAlgorithm<ResponseT>
extends Object
implements ResultRetryAlgorithm<ResponseT>
For internal use, public for technical reasons.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionApiResultRetryAlgorithm(BigQueryReadSettings.RetryAttemptListener retryAttemptListener) -
Method Summary
Modifier and TypeMethodDescriptioncreateNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings) booleanshouldRetry(Throwable prevThrowable, ResponseT prevResponse)
-
Field Details
-
DEADLINE_SLEEP_DURATION
-
-
Constructor Details
-
ApiResultRetryAlgorithm
public ApiResultRetryAlgorithm() -
ApiResultRetryAlgorithm
-
-
Method Details
-
createNextAttempt
public TimedAttemptSettings createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings) - Specified by:
createNextAttemptin interfaceResultRetryAlgorithm<ResponseT>
-
shouldRetry
- Specified by:
shouldRetryin interfaceResultRetryAlgorithm<ResponseT>
-