Files
spring-integration/src/reference/asciidoc
Artem Bilan 280eb29f62 GH-3959: MqttConFailedEvent for normal disconnect (#3961)
* GH-3959: MqttConFailedEvent for normal disconnect

Fixes https://github.com/spring-projects/spring-integration/issues/3959

The `MqttCallback.disconnected(MqttDisconnectResponse)` in Paho v5 client is also
called when server initiates a disconnection.
In this case that `MqttDisconnectResponse` does not have a `cause` value

* Modify `MqttConnectionFailedEvent` to make a `cause` property optional
* Fix `Mqttv5PahoMessageDrivenChannelAdapter` & `Mqttv5PahoMessageHandler`
to not check for `cause`, but emit an `MqttConnectionFailedEvent` for any `disconnected()` calls

Unfortunately current Paho v3 client does not call `connectionLost()` for normal disconnections
and we cannot react for this callback with an `MqttConnectionFailedEvent`

**Cherry-pick to `5.5.x`**

* Fix language in doc

Co-authored-by: Gary Russell <grussell@vmware.com>

Co-authored-by: Gary Russell <grussell@vmware.com>
2022-12-07 08:58:10 -05:00
..
2021-10-21 14:17:35 -04:00
2019-12-26 15:41:19 -05:00
2020-05-27 12:21:24 -04:00
2019-05-29 17:47:34 -04:00
2019-02-15 15:54:18 -05:00
2019-05-29 17:47:34 -04:00
2021-10-21 14:17:35 -04:00
2020-08-07 12:56:57 -04:00
2019-05-29 17:47:34 -04:00
2021-10-21 14:17:35 -04:00
2021-06-08 17:28:59 -04:00
2021-04-07 15:17:17 -04:00
2022-05-27 12:44:12 -04:00
2021-04-07 15:17:17 -04:00
2020-08-07 12:56:57 -04:00
2021-10-21 14:17:35 -04:00
2021-11-15 10:00:14 -05:00
2020-10-28 14:47:02 -04:00
2019-03-21 17:16:30 -04:00
2020-07-24 11:03:39 -04:00
2021-10-21 14:17:35 -04:00
2021-10-21 14:17:35 -04:00
2021-03-01 13:38:03 -05:00
2021-10-21 14:17:35 -04:00
2021-04-07 15:17:17 -04:00
2019-05-29 17:47:34 -04:00
2020-07-13 16:31:03 -04:00
2019-05-29 17:47:34 -04:00
2022-02-16 10:02:32 -05:00
2021-10-21 14:17:35 -04:00
2021-11-15 12:21:52 -05:00
2021-11-15 12:21:52 -05:00
2021-11-15 12:21:52 -05:00