Set Retry Policy
To specify your desired retry policy, call the RequestConfig() class in the config parameter when calling the install() method. The DTIS SDK supports the RetryPolicy object to provide specific retry policy settings, such as the number of times to retry a task and when to retry a task. Use RetryPolicy.Builder to create the object.
If you do not include retry policy settings when calling the install() method, Ignite applies the default retry settings noted below.
To specify a custom RetryPolicy object for DTIS installations:
Build your custom
RetryPolicyobject according to the following builder:
val requestConfig = RequestConfig(retryPolicy = RetryPolicy.Builder()
.retries(0)
.retry500s(true)
.retryConnectionFailures(true)
.build())retries
Number
Specify the number of times to retry an unsuccessful installation request. This defaults to 0.
retry500s
Boolean
Specify whether to retry the installation request when server returns 5xx status codes (server errors).
true= If server returns5xxstatus code, retry the installation request. Ignite defaults totrue.false= If server returns5xxstatus code, do not retry the installation request.
retryConnectionFailures
Boolean
Specify whether to retry the installation request in case of connectivity issues.
true= If connection fails, retry the installation request. Ignite defaults totrue.false= If connection fails, do not retry the installation request.
Pass your retry policy settings in the
configparameter when calling theinstall()method. Otherwise, Ignite applies the default settings.
Last updated
