Package com.google.api.gax.retrying
Interface TimedRetryAlgorithm
- All Known Subinterfaces:
TimedRetryAlgorithmWithContext
- All Known Implementing Classes:
ExponentialPollAlgorithm,ExponentialRetryAlgorithm,OperationTimedPollAlgorithm
public interface TimedRetryAlgorithm
Same as
TimedRetryAlgorithmWithContext, but without methods that accept a RetryingContext. Use TimedRetryAlgorithmWithContext instead of this interface when
possible.-
Method Summary
Modifier and TypeMethodDescriptionSame asTimedRetryAlgorithmWithContext.createFirstAttempt(RetryingContext), but without aRetryingContext.createNextAttempt(TimedAttemptSettings prevSettings) booleanshouldRetry(TimedAttemptSettings nextAttemptSettings) Same asTimedRetryAlgorithmWithContext.shouldRetry(RetryingContext, TimedAttemptSettings), but without aRetryingContext.
-
Method Details
-
createFirstAttempt
TimedAttemptSettings createFirstAttempt()Same asTimedRetryAlgorithmWithContext.createFirstAttempt(RetryingContext), but without aRetryingContext.Use
TimedRetryAlgorithmWithContext.createFirstAttempt(RetryingContext)instead of this method when possible. -
createNextAttempt
Same asTimedRetryAlgorithmWithContext.createNextAttempt(RetryingContext, TimedAttemptSettings), but without aRetryingContext.Use
TimedRetryAlgorithmWithContext.createNextAttempt(RetryingContext, TimedAttemptSettings)instead of this method when possible. -
shouldRetry
Same asTimedRetryAlgorithmWithContext.shouldRetry(RetryingContext, TimedAttemptSettings), but without aRetryingContext.Use
TimedRetryAlgorithmWithContext.shouldRetry(RetryingContext, TimedAttemptSettings)instead of this method when possible.- Throws:
CancellationException
-