Class RetriableCallResponse

java.lang.Object
com.amilesend.client.connection.retry.RetriableCallResponse

public class RetriableCallResponse extends Object
The response from the invocation of a RetryStrategy.
  • Method Details

    • isSuccess

      public boolean isSuccess()
      Indicates if the response is successful or not.
      Returns:
      true if successful; else, false
    • builder

    • getAttempts

      public int getAttempts()
      The number of attempts that were made.
    • getExceptions

      public List<Exception> getExceptions()
      The list of exceptions from any failures.
    • getResponse

      public okhttp3.Response getResponse()
      The response for the last successful invocation.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object