-
- All Implemented Interfaces:
public interface HttpRequestRetryPolicyRetry policy for HTTP-request.
-
-
Method Summary
Modifier and Type Method Description abstract BooleanshouldRetry(Integer statusCode, Integer numRetries)Determines if request should be retried. abstract DoublegetRetryDelay(Integer numRetries)Returns a delay for the next retry. -
-
Method Detail
-
shouldRetry
abstract Boolean shouldRetry(Integer statusCode, Integer numRetries)
Determines if request should be retried.
- Parameters:
statusCode- HTTP-status code of the request.numRetries- number of times the request was already retried.
-
getRetryDelay
abstract Double getRetryDelay(Integer numRetries)
Returns a delay for the next retry.
- Parameters:
numRetries- number of times the request was already retried.
-
-
-
-