Class ApiResultRetryAlgorithm<ResponseT>
- java.lang.Object
-
- com.google.cloud.bigquery.storage.v1beta1.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
Fields Modifier and Type Field Description static org.threeten.bp.Duration
DEADLINE_SLEEP_DURATION
-
Constructor Summary
Constructors Constructor Description ApiResultRetryAlgorithm()
ApiResultRetryAlgorithm(BigQueryStorageSettings.RetryAttemptListener retryAttemptListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.retrying.TimedAttemptSettings
createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, com.google.api.gax.retrying.TimedAttemptSettings prevSettings)
boolean
shouldRetry(Throwable prevThrowable, ResponseT prevResponse)
-
-
-
Constructor Detail
-
ApiResultRetryAlgorithm
public ApiResultRetryAlgorithm()
-
ApiResultRetryAlgorithm
public ApiResultRetryAlgorithm(BigQueryStorageSettings.RetryAttemptListener retryAttemptListener)
-
-
Method Detail
-
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>
-
-