Skip to content

Commit 133f813

Browse files
authored
Mqtt5 enums (#235)
1 parent eec2f8f commit 133f813

File tree

5 files changed

+1267
-4
lines changed

5 files changed

+1267
-4
lines changed

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ let awsCEventStreamExcludes = [
192192

193193
let awsCMqttExcludes = [
194194
"bin",
195-
"CODE_OF_CONDUCT.md",
195+
"CODE_OF_CONDUCT.md"
196196
] + excludesFromAll
197197

198198
packageTargets.append(contentsOf: [

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AwsCommonRuntimeKit
2-
The AWS CRT for Swift is currently in developer preview and is intended strictly for feedback purposes only.
2+
The AWS CRT for Swift is currently in developer preview and is intended strictly for feedback purposes only.
33
Do not use this for production workloads.
44

55
## Building
@@ -29,4 +29,4 @@ Required Reading:
2929
Useful Videos:
3030
- [Safely manage pointers in Swift](https://developer.apple.com/videos/play/wwdc2020/10167/)
3131
- [Unsafe Swift](https://developer.apple.com/videos/play/wwdc2020/10648)
32-
- [Swift and C Interoperability](https://youtu.be/0kim9mxBOA8)
32+
- [Swift and C Interoperability](https://youtu.be/0kim9mxBOA8)

Source/AwsCommonRuntimeKit/io/retryer/ExponentialBackoffJitterMode.swift

+11-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,22 @@
33

44
import AwsCIo
55

6+
/// Controls how the reconnect delay is modified in order to smooth out the distribution of reconnection attempt
7+
/// timepoints for a large set of reconnecting clients.
8+
/// See `Exponential Backoff and Jitter <https:///aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/>`_
69
public enum ExponentialBackoffJitterMode {
7-
/// Uses AWS_EXPONENTIAL_BACKOFF_JITTER_FULL
10+
/// Maps to full
811
/// Link to documentation: https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/
912
case `default`
13+
14+
/// Do not perform any randomization on the reconnect delay
1015
case none
16+
17+
/// Fully random between no delay and the current exponential backoff value.
1118
case full
19+
20+
/// Backoff is taken randomly from the interval between the base backoff
21+
/// interval and a scaling (greater than 1) of the current backoff value
1222
case decorrelated
1323
}
1424

0 commit comments

Comments
 (0)