Class RetryHandler


  • public class RetryHandler
    extends Object
    • Constructor Detail

      • RetryHandler

        public RetryHandler()
    • Method Detail

      • getErrorCode

        public static int getErrorCode​(IOException exception)
      • isRetryAllowedHttp

        public static boolean isRetryAllowedHttp​(int executionCount,
                                                 org.apache.http.protocol.HttpContext context,
                                                 int errCode,
                                                 boolean shouldRetryTemporarilyUnavailableError,
                                                 long temporarilyUnavailableRetryTimeout,
                                                 boolean shouldRetryRateLimitError,
                                                 long rateLimitRetryTimeout,
                                                 long temporarilyUnavailableRetryCount,
                                                 long rateLimitRetryCount,
                                                 long retryInterval,
                                                 String originalErrorMessage)
                                          throws DatabricksHttpException
        Throws:
        DatabricksHttpException
      • sleepForDelay

        public static void sleepForDelay​(long delay)