-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controller.Api.MQTT: reconnect on connection failure #2602
Merged
Merged
Commits on Feb 6, 2024
-
Update ControllerApiMqttImpl.java to reconnect on Connection Failure
After the initial connection attempt in the activate method, we schedule the attemptConnect method to be called periodically every 60 seconds. This ensures that if the MQTT client becomes disconnected for any reason (e.g., network issues, broker restarts), the system will automatically attempt to re-establish the connection at regular intervals.
Configuration menu - View commit details
-
Copy full SHA for 1924fd1 - Browse repository at this point
Copy the full SHA 1924fd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dcdf6f - Browse repository at this point
Copy the full SHA 2dcdf6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4ffec3 - Browse repository at this point
Copy the full SHA e4ffec3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2016985 - Browse repository at this point
Copy the full SHA 2016985View commit details
Commits on Feb 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6a71b90 - Browse repository at this point
Copy the full SHA 6a71b90View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19172f0 - Browse repository at this point
Copy the full SHA 19172f0View commit details -
Enhanced Lifecycle Management: Modified the component's initialization and shutdown processes. The ScheduledExecutorService, responsible for managing reconnection attempts, is now initialized in the component's constructor and configured in the @activate method. This ensures that the executor is ready for use immediately and adapts to configuration updates. Graceful Shutdown: Implemented a more graceful shutdown process using ThreadPoolUtils.shutdownAndAwaitTermination in the @deactivate method. This approach ensures that ongoing reconnection attempts are properly completed before the component is deactivated, preventing potential resource leaks. Configuration Update Handling: Introduced a @Modified method to dynamically handle configuration changes. This method allows the component to adjust its behavior, such as changing the reconnection attempt interval, without needing to be fully deactivated and reactivated.
Configuration menu - View commit details
-
Copy full SHA for 03485bc - Browse repository at this point
Copy the full SHA 03485bcView commit details -
Dynamic Reconnection Interval: Added a new configuration parameter (reconnectionAttemptInterval) to the Config interface. This parameter allows users to specify the interval between reconnection attempts to the MQTT broker, enhancing the component's adaptability to network conditions or broker availability.
Configuration menu - View commit details
-
Copy full SHA for 272f125 - Browse repository at this point
Copy the full SHA 272f125View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56ddf4e - Browse repository at this point
Copy the full SHA 56ddf4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6c00d6 - Browse repository at this point
Copy the full SHA c6c00d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05ff16d - Browse repository at this point
Copy the full SHA 05ff16dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 052e5b2 - Browse repository at this point
Copy the full SHA 052e5b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55b8581 - Browse repository at this point
Copy the full SHA 55b8581View commit details -
Configuration menu - View commit details
-
Copy full SHA for be1e074 - Browse repository at this point
Copy the full SHA be1e074View commit details
Commits on Apr 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4490d7e - Browse repository at this point
Copy the full SHA 4490d7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7cb132 - Browse repository at this point
Copy the full SHA d7cb132View commit details -
Configuration menu - View commit details
-
Copy full SHA for a40f94c - Browse repository at this point
Copy the full SHA a40f94cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a3d7922 - Browse repository at this point
Copy the full SHA a3d7922View commit details
Commits on May 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7b834ab - Browse repository at this point
Copy the full SHA 7b834abView commit details
Commits on Jun 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0fb32a3 - Browse repository at this point
Copy the full SHA 0fb32a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e11990d - Browse repository at this point
Copy the full SHA e11990dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fb3a17 - Browse repository at this point
Copy the full SHA 1fb3a17View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.