public class ApiResultRetryAlgorithm<ResponseT> extends Object implements ResultRetryAlgorithm<ResponseT>
Modifier and Type | Field and Description |
---|---|
static org.threeten.bp.Duration |
DEADLINE_SLEEP_DURATION |
Constructor and Description |
---|
ApiResultRetryAlgorithm() |
Modifier and Type | Method and Description |
---|---|
TimedAttemptSettings |
createNextAttempt(Throwable prevThrowable,
ResponseT prevResponse,
TimedAttemptSettings prevSettings) |
boolean |
shouldRetry(Throwable prevThrowable,
ResponseT prevResponse) |
public static final org.threeten.bp.Duration DEADLINE_SLEEP_DURATION
public TimedAttemptSettings createNextAttempt(Throwable prevThrowable, ResponseT prevResponse, TimedAttemptSettings prevSettings)
createNextAttempt
in interface ResultRetryAlgorithm<ResponseT>
public boolean shouldRetry(Throwable prevThrowable, ResponseT prevResponse)
shouldRetry
in interface ResultRetryAlgorithm<ResponseT>
Copyright © 2019 Google LLC. All rights reserved.