Class RetryHandler
- java.lang.Object
-
- com.databricks.jdbc.dbclient.impl.http.RetryHandler
-
public class RetryHandler extends Object
-
-
Constructor Summary
Constructors Constructor Description RetryHandler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetErrorCode(IOException exception)static booleanisRetryAllowedHttp(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)static voidsleepForDelay(long delay)
-
-
-
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)
-
-