Class DefaultRetryHandler

  • All Implemented Interfaces:
    RetryHandler

    public class DefaultRetryHandler
    extends java.lang.Object
    implements RetryHandler
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultRetryHandler

        public DefaultRetryHandler()
    • Method Detail

      • shouldRetry

        public boolean shouldRetry​(int responseCode)
        Description copied from interface: RetryHandler
        Specifies retry condition based on status code of response
        Specified by:
        shouldRetry in interface RetryHandler
        Parameters:
        responseCode - Response status code
        Returns:
        boolean condition for retry
      • getRetryAttempts

        public int getRetryAttempts()
        Description copied from interface: RetryHandler
        Specifies Number of Retry Attempts allowed
        Specified by:
        getRetryAttempts in interface RetryHandler
        Returns:
        int: Number of retry attempts
      • getRetryDelayMillis

        public int getRetryDelayMillis()
        Description copied from interface: RetryHandler
        Specifies Delay time in milliseconds before each retry
        Specified by:
        getRetryDelayMillis in interface RetryHandler
        Returns:
        int: Delay time in milliseconds