Package com.google.api.gax.retrying
Interface ResultRetryAlgorithm<ResponseT>
- All Known Subinterfaces:
ResultRetryAlgorithmWithContext<ResponseT>
- All Known Implementing Classes:
BasicResultRetryAlgorithm,OperationResponsePollAlgorithm
public interface ResultRetryAlgorithm<ResponseT>
Same as
ResultRetryAlgorithmWithContext, but without methods that accept a RetryingContext. Use ResultRetryAlgorithmWithContext instead of this interface when
possible.-
Method Summary
Modifier and TypeMethodDescriptioncreateNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings) booleanshouldRetry(Throwable prevThrowable, ResponseT prevResponse) Same asshouldRetry(Throwable, Object), but without aRetryingContext.
-
Method Details
-
createNextAttempt
TimedAttemptSettings createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings) Same asResultRetryAlgorithmWithContext.createNextAttempt(RetryingContext, Throwable, Object, TimedAttemptSettings), but without aRetryingContext.Use
ResultRetryAlgorithmWithContext.createNextAttempt(RetryingContext, Throwable, Object, TimedAttemptSettings)instead of this method when possible. -
shouldRetry
Same asshouldRetry(Throwable, Object), but without aRetryingContext.Use
ResultRetryAlgorithmWithContext.shouldRetry(RetryingContext, Throwable, Object)instead of this method when possible.- Throws:
CancellationException
-