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 asResultRetryAlgorithmWithContext, but without methods that accept aRetryingContext. UseResultRetryAlgorithmWithContextinstead of this interface when possible.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimedAttemptSettingscreateNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings)booleanshouldRetry(Throwable prevThrowable, ResponseT prevResponse)Same asshouldRetry(Throwable, Object), but without aRetryingContext.
-
-
-
Method Detail
-
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
boolean shouldRetry(Throwable prevThrowable, ResponseT prevResponse) throws CancellationException
Same asshouldRetry(Throwable, Object), but without aRetryingContext.Use
ResultRetryAlgorithmWithContext.shouldRetry(RetryingContext, Throwable, Object)instead of this method when possible.- Throws:
CancellationException
-
-