Initializes the context for using backoff algorithm. The parameters are required for calculating the next retry backoff delay. This function must be called by the application before the first new retry attempt.
[out] | pContext | The context to initialize with parameters required for the next backoff delay calculation function. |
[in] | maxBackOff | The maximum backoff delay (in milliseconds) between consecutive retry attempts. |
[in] | backOffBase | The base value (in milliseconds) of backoff delay to use in the exponential backoff and jitter model. |
[in] | maxAttempts | The maximum number of retry attempts. Set the value to BACKOFF_ALGORITHM_RETRY_FOREVER to retry for ever. |