File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
src/main/java/software/amazon/awssdk/iot Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 4242 <dependency >
4343 <groupId >software.amazon.awssdk.crt</groupId >
4444 <artifactId >aws-crt</artifactId >
45- <version >0.13.1 </version >
45+ <version >0.13.2 </version >
4646 </dependency >
4747 <dependency >
4848 <groupId >junit</groupId >
Original file line number Diff line number Diff line change @@ -263,6 +263,19 @@ public AwsIotMqttConnectionBuilder withTimeoutMs(int timeoutMs) {
263263 return this ;
264264 }
265265
266+ /**
267+ * Configures the minimum and maximum reconnect timeouts.
268+ *
269+ * The time between reconnect attempts will start at min and multiply by 2 until max is reached.
270+ *
271+ * @param minTimeoutSecs The timeout to start with
272+ * @param maxTimeoutSecs The highest allowable wait time between reconnect attempts
273+ */
274+ public AwsIotMqttConnectionBuilder withReconnectTimeoutSecs (long minTimeoutSecs , long maxTimeoutSecs ) {
275+ this .config .setReconnectTimeoutSecs (minTimeoutSecs , maxTimeoutSecs );
276+ return this ;
277+ }
278+
266279 /**
267280 * Configures the common settings for the socket to use for connections created by this builder
268281 *
You can’t perform that action at this time.
0 commit comments