RetryConfig
Table of contents
Description
This object is used to setup a retry configuration for the Alert Notification service client. The logic behind is as simple as follows - if a request to Alert Notification service fails it will be retried until the maxRetries are reached and each retry will be attempted after the given retryBackoff.
Properties
Field | Type | Description |
---|---|---|
maxRetries | number | Maximum number of retries |
retryBackoff | number | Timeout in milliseconds used to wait before executing the next retry |
@Example
const retryConfiguration = {
maxRetries: 5,
retryBackoff: 2500
};
// Maximum numbers of retry is 5 and the timeout between each retry is 2500 ms