HttpRequestRetryConfig
Contains HttpRequestRetry configurations settings.
Functions
Specifies a constant delay between retries. This delay equals to millis + [0..randomizationMs]
milliseconds.
Specifies delay logic for retries. The block accepts the number of retries and should return the number of milliseconds to wait before retrying.
Specifies an exponential delay between retries, which is calculated using the Exponential backoff algorithm. This delay equals to base ^ retryCount * 1000 + [0..randomizationMs]
Modifies a request before retrying.
Specifies retry logic for a response. The block accepts HttpRequest and HttpResponse and should return true
if this request should be retried.
Enables retrying a request if an exception is thrown during the HttpSend phase and specifies the number of retries. By default, HttpRequestTimeoutException, ConnectTimeoutException and SocketTimeoutException are not retried. Set retryOnTimeout to true
to retry on timeout. Note, that in this case, HttpTimeout plugin should be installed after HttpRequestRetry.
Specifies retry logic for failed requests. The block accepts HttpRequestBuilder and Throwable and should return true if this request should be retried.
Enables retrying a request if an exception is thrown during the HttpSend phase or a 5xx response is received and specifies the number of retries.
Enables retrying a request if a 5xx response is received from a server and specifies the number of retries.