Interface IShouldRetry


public interface IShouldRetry
Indicates whether a specific request should be retried
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    shouldRetry(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 retrying
      executionCount - number of retry attempts
      request - current request
      response - current response
      Returns:
      whether the specific request should be retried by the handler