Skip to content

Commit 9d6369f

Browse files
committed
Doxygen for 8638e9e
1 parent 848eac8 commit 9d6369f

20 files changed

Lines changed: 90 additions & 90 deletions

main/backoff__algorithm_8c.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,18 @@
111111
</div><table class="memberdecls">
112112
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
113113
Functions</h2></td></tr>
114-
<tr class="memitem:ae9dc843e520435569f40e8832791ecbe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__backoff__algorithm__enum__types.html#ga7b7f4051eb253599ffedd69285f5a89b">BackoffAlgorithmStatus_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backoff__algorithm_8c.html#ae9dc843e520435569f40e8832791ecbe">BackoffAlgorithm_GetNextBackoff</a> (<a class="el" href="struct_backoff_algorithm_context__t.html">BackoffAlgorithmContext_t</a> *pRetryContext, uint32_t randomValue, uint16_t *pNextBackOff)</td></tr>
115-
<tr class="memdesc:ae9dc843e520435569f40e8832791ecbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Simple exponential backoff and jitter function that provides the delay value for the next retry attempt. After a failure of an operation that needs to be retried, the application should use this function to obtain the backoff delay value for the next retry, and then wait for the backoff time period before retrying the operation. <br /></td></tr>
116-
<tr class="separator:ae9dc843e520435569f40e8832791ecbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
117-
<tr class="memitem:ac37ecab230cf5da8f70547ec63776a48"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backoff__algorithm_8c.html#ac37ecab230cf5da8f70547ec63776a48">BackoffAlgorithm_InitializeParams</a> (<a class="el" href="struct_backoff_algorithm_context__t.html">BackoffAlgorithmContext_t</a> *pContext, uint16_t backOffBase, uint16_t maxBackOff, uint32_t maxAttempts)</td></tr>
118-
<tr class="memdesc:ac37ecab230cf5da8f70547ec63776a48"><td class="mdescLeft">&#160;</td><td class="mdescRight">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. <br /></td></tr>
119-
<tr class="separator:ac37ecab230cf5da8f70547ec63776a48"><td class="memSeparator" colspan="2">&#160;</td></tr>
114+
<tr class="memitem:ad418427ae9e59374df8235d5e369bd1c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__backoff__algorithm__enum__types.html#ga7b7f4051eb253599ffedd69285f5a89b">BackoffAlgorithmStatus_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backoff__algorithm_8c.html#ad418427ae9e59374df8235d5e369bd1c">BackoffAlgorithm_GetNextBackoff</a> (<a class="el" href="struct_backoff_algorithm_context__t.html">BackoffAlgorithmContext_t</a> *pRetryContext, uint32_t randomValue, uint32_t *pNextBackOff)</td></tr>
115+
<tr class="memdesc:ad418427ae9e59374df8235d5e369bd1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Simple exponential backoff and jitter function that provides the delay value for the next retry attempt. After a failure of an operation that needs to be retried, the application should use this function to obtain the backoff delay value for the next retry, and then wait for the backoff time period before retrying the operation. <br /></td></tr>
116+
<tr class="separator:ad418427ae9e59374df8235d5e369bd1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
117+
<tr class="memitem:adf229f6284bae0856b901ec19f10d6bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backoff__algorithm_8c.html#adf229f6284bae0856b901ec19f10d6bd">BackoffAlgorithm_InitializeParams</a> (<a class="el" href="struct_backoff_algorithm_context__t.html">BackoffAlgorithmContext_t</a> *pContext, uint32_t backOffBase, uint32_t maxBackOff, uint32_t maxAttempts)</td></tr>
118+
<tr class="memdesc:adf229f6284bae0856b901ec19f10d6bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">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. <br /></td></tr>
119+
<tr class="separator:adf229f6284bae0856b901ec19f10d6bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
120120
</table>
121121
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
122122
<div class="textblock"><p>Implementation of the backoff algorithm API for a "Full Jitter" exponential backoff with jitter strategy. </p>
123123
</div><h2 class="groupheader">Function Documentation</h2>
124-
<a id="ae9dc843e520435569f40e8832791ecbe" name="ae9dc843e520435569f40e8832791ecbe"></a>
125-
<h2 class="memtitle"><span class="permalink"><a href="#ae9dc843e520435569f40e8832791ecbe">&#9670;&#160;</a></span>BackoffAlgorithm_GetNextBackoff()</h2>
124+
<a id="ad418427ae9e59374df8235d5e369bd1c" name="ad418427ae9e59374df8235d5e369bd1c"></a>
125+
<h2 class="memtitle"><span class="permalink"><a href="#ad418427ae9e59374df8235d5e369bd1c">&#9670;&#160;</a></span>BackoffAlgorithm_GetNextBackoff()</h2>
126126

127127
<div class="memitem">
128128
<div class="memproto">
@@ -142,7 +142,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#ae9dc843e520435569f40e883
142142
<tr>
143143
<td class="paramkey"></td>
144144
<td></td>
145-
<td class="paramtype">uint16_t *&#160;</td>
145+
<td class="paramtype">uint32_t *&#160;</td>
146146
<td class="paramname"><em>pNextBackOff</em>&#160;</td>
147147
</tr>
148148
<tr>
@@ -162,13 +162,13 @@ <h2 class="memtitle"><span class="permalink"><a href="#ae9dc843e520435569f40e883
162162
</table>
163163
</dd>
164164
</dl>
165-
<dl class="section note"><dt>Note</dt><dd>For generating a random number, it is recommended to use a Random Number Generator that is seeded with a device-specific entropy source so that possibility of collisions between multiple devices retrying the network operations can be mitigated.</dd></dl>
165+
<dl class="section note"><dt>Note</dt><dd>For generating a random number, it is recommended to use a random number generator that is seeded with a device-specific entropy source so that possibility of collisions between multiple devices retrying the network operations can be mitigated.</dd></dl>
166166
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__backoff__algorithm__enum__types.html#gga7b7f4051eb253599ffedd69285f5a89baecf422ba6b1201d8ffbfd61e5712d695" title="The function successfully calculated the next back-off value.">BackoffAlgorithmSuccess</a> after a successful sleep; <a class="el" href="group__backoff__algorithm__enum__types.html#gga7b7f4051eb253599ffedd69285f5a89ba4dd72a4822e0f93b5b98309453b774df" title="The function exhausted all retry attempts.">BackoffAlgorithmRetriesExhausted</a> when all attempts are exhausted. </dd></dl>
167167

168168
</div>
169169
</div>
170-
<a id="ac37ecab230cf5da8f70547ec63776a48" name="ac37ecab230cf5da8f70547ec63776a48"></a>
171-
<h2 class="memtitle"><span class="permalink"><a href="#ac37ecab230cf5da8f70547ec63776a48">&#9670;&#160;</a></span>BackoffAlgorithm_InitializeParams()</h2>
170+
<a id="adf229f6284bae0856b901ec19f10d6bd" name="adf229f6284bae0856b901ec19f10d6bd"></a>
171+
<h2 class="memtitle"><span class="permalink"><a href="#adf229f6284bae0856b901ec19f10d6bd">&#9670;&#160;</a></span>BackoffAlgorithm_InitializeParams()</h2>
172172

173173
<div class="memitem">
174174
<div class="memproto">
@@ -182,13 +182,13 @@ <h2 class="memtitle"><span class="permalink"><a href="#ac37ecab230cf5da8f70547ec
182182
<tr>
183183
<td class="paramkey"></td>
184184
<td></td>
185-
<td class="paramtype">uint16_t&#160;</td>
185+
<td class="paramtype">uint32_t&#160;</td>
186186
<td class="paramname"><em>backOffBase</em>, </td>
187187
</tr>
188188
<tr>
189189
<td class="paramkey"></td>
190190
<td></td>
191-
<td class="paramtype">uint16_t&#160;</td>
191+
<td class="paramtype">uint32_t&#160;</td>
192192
<td class="paramname"><em>maxBackOff</em>, </td>
193193
</tr>
194194
<tr>
@@ -210,7 +210,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#ac37ecab230cf5da8f70547ec
210210
<table class="params">
211211
<tr><td class="paramdir">[out]</td><td class="paramname">pContext</td><td>The context to initialize with parameters required for the next backoff delay calculation function. </td></tr>
212212
<tr><td class="paramdir">[in]</td><td class="paramname">maxBackOff</td><td>The maximum backoff delay (in milliseconds) between consecutive retry attempts. </td></tr>
213-
<tr><td class="paramdir">[in]</td><td class="paramname">backOffBase</td><td>The base value (in milliseconds) of backoff delay to use in the exponential backoff and jitter model. </td></tr>
213+
<tr><td class="paramdir">[in]</td><td class="paramname">backOffBase</td><td>The base value (in milliseconds) of backoff delay to use in the exponential backoff and jitter model. Must be non-zero. </td></tr>
214214
<tr><td class="paramdir">[in]</td><td class="paramname">maxAttempts</td><td>The maximum number of retry attempts. Set the value to <a class="el" href="group__backoff__algorithm__constants.html#ga89e511b4edee8a92050802a329753842" title="Constant to represent unlimited number of retry attempts.">BACKOFF_ALGORITHM_RETRY_FOREVER</a> to retry for ever. </td></tr>
215215
</table>
216216
</dd>

main/backoff__algorithm_8h.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -130,23 +130,23 @@
130130
<tr class="memitem:ga7b7f4051eb253599ffedd69285f5a89b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__backoff__algorithm__enum__types.html#ga7b7f4051eb253599ffedd69285f5a89b">BackoffAlgorithmStatus_t</a> { <a class="el" href="group__backoff__algorithm__enum__types.html#gga7b7f4051eb253599ffedd69285f5a89baecf422ba6b1201d8ffbfd61e5712d695">BackoffAlgorithmSuccess</a> = 0
131131
, <a class="el" href="group__backoff__algorithm__enum__types.html#gga7b7f4051eb253599ffedd69285f5a89ba4dd72a4822e0f93b5b98309453b774df">BackoffAlgorithmRetriesExhausted</a>
132132
}</td></tr>
133-
<tr class="memdesc:ga7b7f4051eb253599ffedd69285f5a89b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Status for <a class="el" href="backoff__algorithm_8h.html#ae9dc843e520435569f40e8832791ecbe">BackoffAlgorithm_GetNextBackoff</a>. <a href="group__backoff__algorithm__enum__types.html#ga7b7f4051eb253599ffedd69285f5a89b">More...</a><br /></td></tr>
133+
<tr class="memdesc:ga7b7f4051eb253599ffedd69285f5a89b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Status for <a class="el" href="backoff__algorithm_8h.html#ad418427ae9e59374df8235d5e369bd1c">BackoffAlgorithm_GetNextBackoff</a>. <a href="group__backoff__algorithm__enum__types.html#ga7b7f4051eb253599ffedd69285f5a89b">More...</a><br /></td></tr>
134134
<tr class="separator:ga7b7f4051eb253599ffedd69285f5a89b"><td class="memSeparator" colspan="2">&#160;</td></tr>
135135
</table><table class="memberdecls">
136136
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
137137
Functions</h2></td></tr>
138-
<tr class="memitem:ac37ecab230cf5da8f70547ec63776a48"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backoff__algorithm_8h.html#ac37ecab230cf5da8f70547ec63776a48">BackoffAlgorithm_InitializeParams</a> (<a class="el" href="struct_backoff_algorithm_context__t.html">BackoffAlgorithmContext_t</a> *pContext, uint16_t backOffBase, uint16_t maxBackOff, uint32_t maxAttempts)</td></tr>
139-
<tr class="memdesc:ac37ecab230cf5da8f70547ec63776a48"><td class="mdescLeft">&#160;</td><td class="mdescRight">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. <br /></td></tr>
140-
<tr class="separator:ac37ecab230cf5da8f70547ec63776a48"><td class="memSeparator" colspan="2">&#160;</td></tr>
141-
<tr class="memitem:ae9dc843e520435569f40e8832791ecbe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__backoff__algorithm__enum__types.html#ga7b7f4051eb253599ffedd69285f5a89b">BackoffAlgorithmStatus_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backoff__algorithm_8h.html#ae9dc843e520435569f40e8832791ecbe">BackoffAlgorithm_GetNextBackoff</a> (<a class="el" href="struct_backoff_algorithm_context__t.html">BackoffAlgorithmContext_t</a> *pRetryContext, uint32_t randomValue, uint16_t *pNextBackOff)</td></tr>
142-
<tr class="memdesc:ae9dc843e520435569f40e8832791ecbe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Simple exponential backoff and jitter function that provides the delay value for the next retry attempt. After a failure of an operation that needs to be retried, the application should use this function to obtain the backoff delay value for the next retry, and then wait for the backoff time period before retrying the operation. <br /></td></tr>
143-
<tr class="separator:ae9dc843e520435569f40e8832791ecbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
138+
<tr class="memitem:adf229f6284bae0856b901ec19f10d6bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backoff__algorithm_8h.html#adf229f6284bae0856b901ec19f10d6bd">BackoffAlgorithm_InitializeParams</a> (<a class="el" href="struct_backoff_algorithm_context__t.html">BackoffAlgorithmContext_t</a> *pContext, uint32_t backOffBase, uint32_t maxBackOff, uint32_t maxAttempts)</td></tr>
139+
<tr class="memdesc:adf229f6284bae0856b901ec19f10d6bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">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. <br /></td></tr>
140+
<tr class="separator:adf229f6284bae0856b901ec19f10d6bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
141+
<tr class="memitem:ad418427ae9e59374df8235d5e369bd1c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__backoff__algorithm__enum__types.html#ga7b7f4051eb253599ffedd69285f5a89b">BackoffAlgorithmStatus_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="backoff__algorithm_8h.html#ad418427ae9e59374df8235d5e369bd1c">BackoffAlgorithm_GetNextBackoff</a> (<a class="el" href="struct_backoff_algorithm_context__t.html">BackoffAlgorithmContext_t</a> *pRetryContext, uint32_t randomValue, uint32_t *pNextBackOff)</td></tr>
142+
<tr class="memdesc:ad418427ae9e59374df8235d5e369bd1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Simple exponential backoff and jitter function that provides the delay value for the next retry attempt. After a failure of an operation that needs to be retried, the application should use this function to obtain the backoff delay value for the next retry, and then wait for the backoff time period before retrying the operation. <br /></td></tr>
143+
<tr class="separator:ad418427ae9e59374df8235d5e369bd1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
144144
</table>
145145
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
146146
<div class="textblock"><p>API for calculating backoff period for retry attempts using exponential backoff with jitter algorithm. This library represents the "Full Jitter" backoff strategy explained in the following document. <a href="https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/">https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/</a>. </p>
147147
</div><h2 class="groupheader">Function Documentation</h2>
148-
<a id="ac37ecab230cf5da8f70547ec63776a48" name="ac37ecab230cf5da8f70547ec63776a48"></a>
149-
<h2 class="memtitle"><span class="permalink"><a href="#ac37ecab230cf5da8f70547ec63776a48">&#9670;&#160;</a></span>BackoffAlgorithm_InitializeParams()</h2>
148+
<a id="adf229f6284bae0856b901ec19f10d6bd" name="adf229f6284bae0856b901ec19f10d6bd"></a>
149+
<h2 class="memtitle"><span class="permalink"><a href="#adf229f6284bae0856b901ec19f10d6bd">&#9670;&#160;</a></span>BackoffAlgorithm_InitializeParams()</h2>
150150

151151
<div class="memitem">
152152
<div class="memproto">
@@ -160,13 +160,13 @@ <h2 class="memtitle"><span class="permalink"><a href="#ac37ecab230cf5da8f70547ec
160160
<tr>
161161
<td class="paramkey"></td>
162162
<td></td>
163-
<td class="paramtype">uint16_t&#160;</td>
163+
<td class="paramtype">uint32_t&#160;</td>
164164
<td class="paramname"><em>backOffBase</em>, </td>
165165
</tr>
166166
<tr>
167167
<td class="paramkey"></td>
168168
<td></td>
169-
<td class="paramtype">uint16_t&#160;</td>
169+
<td class="paramtype">uint32_t&#160;</td>
170170
<td class="paramname"><em>maxBackOff</em>, </td>
171171
</tr>
172172
<tr>
@@ -188,16 +188,16 @@ <h2 class="memtitle"><span class="permalink"><a href="#ac37ecab230cf5da8f70547ec
188188
<table class="params">
189189
<tr><td class="paramdir">[out]</td><td class="paramname">pContext</td><td>The context to initialize with parameters required for the next backoff delay calculation function. </td></tr>
190190
<tr><td class="paramdir">[in]</td><td class="paramname">maxBackOff</td><td>The maximum backoff delay (in milliseconds) between consecutive retry attempts. </td></tr>
191-
<tr><td class="paramdir">[in]</td><td class="paramname">backOffBase</td><td>The base value (in milliseconds) of backoff delay to use in the exponential backoff and jitter model. </td></tr>
191+
<tr><td class="paramdir">[in]</td><td class="paramname">backOffBase</td><td>The base value (in milliseconds) of backoff delay to use in the exponential backoff and jitter model. Must be non-zero. </td></tr>
192192
<tr><td class="paramdir">[in]</td><td class="paramname">maxAttempts</td><td>The maximum number of retry attempts. Set the value to <a class="el" href="group__backoff__algorithm__constants.html#ga89e511b4edee8a92050802a329753842" title="Constant to represent unlimited number of retry attempts.">BACKOFF_ALGORITHM_RETRY_FOREVER</a> to retry for ever. </td></tr>
193193
</table>
194194
</dd>
195195
</dl>
196196

197197
</div>
198198
</div>
199-
<a id="ae9dc843e520435569f40e8832791ecbe" name="ae9dc843e520435569f40e8832791ecbe"></a>
200-
<h2 class="memtitle"><span class="permalink"><a href="#ae9dc843e520435569f40e8832791ecbe">&#9670;&#160;</a></span>BackoffAlgorithm_GetNextBackoff()</h2>
199+
<a id="ad418427ae9e59374df8235d5e369bd1c" name="ad418427ae9e59374df8235d5e369bd1c"></a>
200+
<h2 class="memtitle"><span class="permalink"><a href="#ad418427ae9e59374df8235d5e369bd1c">&#9670;&#160;</a></span>BackoffAlgorithm_GetNextBackoff()</h2>
201201

202202
<div class="memitem">
203203
<div class="memproto">
@@ -217,7 +217,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#ae9dc843e520435569f40e883
217217
<tr>
218218
<td class="paramkey"></td>
219219
<td></td>
220-
<td class="paramtype">uint16_t *&#160;</td>
220+
<td class="paramtype">uint32_t *&#160;</td>
221221
<td class="paramname"><em>pNextBackOff</em>&#160;</td>
222222
</tr>
223223
<tr>
@@ -237,7 +237,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#ae9dc843e520435569f40e883
237237
</table>
238238
</dd>
239239
</dl>
240-
<dl class="section note"><dt>Note</dt><dd>For generating a random number, it is recommended to use a Random Number Generator that is seeded with a device-specific entropy source so that possibility of collisions between multiple devices retrying the network operations can be mitigated.</dd></dl>
240+
<dl class="section note"><dt>Note</dt><dd>For generating a random number, it is recommended to use a random number generator that is seeded with a device-specific entropy source so that possibility of collisions between multiple devices retrying the network operations can be mitigated.</dd></dl>
241241
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="group__backoff__algorithm__enum__types.html#gga7b7f4051eb253599ffedd69285f5a89baecf422ba6b1201d8ffbfd61e5712d695" title="The function successfully calculated the next back-off value.">BackoffAlgorithmSuccess</a> after a successful sleep; <a class="el" href="group__backoff__algorithm__enum__types.html#gga7b7f4051eb253599ffedd69285f5a89ba4dd72a4822e0f93b5b98309453b774df" title="The function exhausted all retry attempts.">BackoffAlgorithmRetriesExhausted</a> when all attempts are exhausted. </dd></dl>
242242

243243
</div>

0 commit comments

Comments
 (0)