Interface IShouldRetry
public interface IShouldRetry
Indicates whether a specific request should be retried
-
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldRetry(long delay, int executionCount, okhttp3.Request request, okhttp3.Response response) Determines whether a specific request should be retried
-
Method Details
-
shouldRetry
boolean shouldRetry(long delay, int executionCount, @Nonnull okhttp3.Request request, @Nonnull okhttp3.Response response) Determines whether a specific request should be retried- Parameters:
delay- the delay to wait before retryingexecutionCount- number of retry attemptsrequest- current requestresponse- current response- Returns:
- whether the specific request should be retried by the handler
-