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(java.lang.Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings)booleanshouldRetry(java.lang.Throwable prevThrowable, ResponseT prevResponse)Same asshouldRetry(Throwable, Object), but without aRetryingContext.
-
-
-
Method Detail
-
createNextAttempt
TimedAttemptSettings createNextAttempt(java.lang.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(java.lang.Throwable prevThrowable, ResponseT prevResponse) throws java.util.concurrent.CancellationExceptionSame asshouldRetry(Throwable, Object), but without aRetryingContext.Use
ResultRetryAlgorithmWithContext.shouldRetry(RetryingContext, Throwable, Object)instead of this method when possible.- Throws:
java.util.concurrent.CancellationException
-
-