Retry Policy

Service API allows the client to set installation retry value using RequestConfig parameter.

fun install(data: String, callback: IResponseCallback<InstallationResponse, 
            InstallationError, InstallationProgress>? = null, 
            metadata: Bundle = Bundle(), 
            action: Bundle = Bundle(), 
            config: RequestConfig = RequestConfig())

RequestConfig allows the client to set different options during install and is passed along with the corresponding request. Currently, the Ignite Services Client SDK supports RetryPolicy which can be created using RetryPolicy.Builder.

To specify custom RetryPolicy, use the following builder pattern:

val requestConfig = RequestConfig(retryPolicy = RetryPolicy.Builder()

and pass them to the installation request:

      config = requestConfig)

If you do not specify a RetryPolicy, Ignite uses the following default configuration for retry options:

Number of install retries. This defaults to 0.
Retry on server errors. This defaults to true.
Retry in case of connectivity issues. This defaults to true.

Back to Top ⇧