Package com.google.api.gax.retrying
Interface TimedRetryAlgorithm
-
- All Known Subinterfaces:
TimedRetryAlgorithmWithContext
- All Known Implementing Classes:
ExponentialPollAlgorithm,ExponentialRetryAlgorithm,OperationTimedPollAlgorithm
public interface TimedRetryAlgorithmSame asTimedRetryAlgorithmWithContext, but without methods that accept aRetryingContext. UseTimedRetryAlgorithmWithContextinstead of this interface when possible.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TimedAttemptSettingscreateFirstAttempt()Same asTimedRetryAlgorithmWithContext.createFirstAttempt(RetryingContext), but without aRetryingContext.TimedAttemptSettingscreateNextAttempt(TimedAttemptSettings prevSettings)booleanshouldRetry(TimedAttemptSettings nextAttemptSettings)Same asTimedRetryAlgorithmWithContext.shouldRetry(RetryingContext, TimedAttemptSettings), but without aRetryingContext.
-
-
-
Method Detail
-
createFirstAttempt
TimedAttemptSettings createFirstAttempt()
Same asTimedRetryAlgorithmWithContext.createFirstAttempt(RetryingContext), but without aRetryingContext.Use
TimedRetryAlgorithmWithContext.createFirstAttempt(RetryingContext)instead of this method when possible.
-
createNextAttempt
TimedAttemptSettings createNextAttempt(TimedAttemptSettings prevSettings)
Same asTimedRetryAlgorithmWithContext.createNextAttempt(RetryingContext, TimedAttemptSettings), but without aRetryingContext.Use
TimedRetryAlgorithmWithContext.createNextAttempt(RetryingContext, TimedAttemptSettings)instead of this method when possible.
-
shouldRetry
boolean shouldRetry(TimedAttemptSettings nextAttemptSettings) throws CancellationException
Same asTimedRetryAlgorithmWithContext.shouldRetry(RetryingContext, TimedAttemptSettings), but without aRetryingContext.Use
TimedRetryAlgorithmWithContext.shouldRetry(RetryingContext, TimedAttemptSettings)instead of this method when possible.- Throws:
CancellationException
-
-