@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public class OperationResponsePollAlgorithm extends Object implements ResultRetryAlgorithm<OperationSnapshot>
OperationSnapshot.isDone() is
true.| Constructor and Description |
|---|
OperationResponsePollAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
TimedAttemptSettings |
createNextAttempt(Throwable prevThrowable,
OperationSnapshot prevResponse,
TimedAttemptSettings prevSettings)
|
boolean |
shouldRetry(Throwable prevThrowable,
OperationSnapshot prevResponse)
Same as
ResultRetryAlgorithm.shouldRetry(Throwable, Object), but without a
RetryingContext. |
public TimedAttemptSettings createNextAttempt(Throwable prevThrowable, OperationSnapshot prevResponse, TimedAttemptSettings prevSettings)
ResultRetryAlgorithmResultRetryAlgorithmWithContext.createNextAttempt(RetryingContext, Throwable,
Object, TimedAttemptSettings), but without a RetryingContext.
Use ResultRetryAlgorithmWithContext.createNextAttempt(RetryingContext, Throwable,
Object, TimedAttemptSettings) instead of this method when possible.
createNextAttempt in interface ResultRetryAlgorithm<OperationSnapshot>public boolean shouldRetry(Throwable prevThrowable, OperationSnapshot prevResponse)
ResultRetryAlgorithmResultRetryAlgorithm.shouldRetry(Throwable, Object), but without a
RetryingContext.
Use ResultRetryAlgorithmWithContext.shouldRetry(RetryingContext, Throwable, Object)
instead of this method when possible.
shouldRetry in interface ResultRetryAlgorithm<OperationSnapshot>