Interface RetryHandler

All Known Implementing Classes:
DefaultRetryHandler

public interface RetryHandler
  • Method Summary

    Modifier and Type Method Description
    int getRetryAttempts()
    Specifies Number of Retry Attempts allowed
    int getRetryDelayMillis()
    Specifies Delay time in milliseconds before each retry
    boolean shouldRetry​(int responseCode)
    Specifies retry condition based on status code of response
  • Method Details

    • shouldRetry

      boolean shouldRetry​(int responseCode)
      Specifies retry condition based on status code of response
      Parameters:
      responseCode - Response status code
      Returns:
      boolean condition for retry
    • getRetryAttempts

      int getRetryAttempts()
      Specifies Number of Retry Attempts allowed
      Returns:
      int: Number of retry attempts
    • getRetryDelayMillis

      int getRetryDelayMillis()
      Specifies Delay time in milliseconds before each retry
      Returns:
      int: Delay time in milliseconds