GH-8850: Mqttv5MDChA: MqttSubscription-based config

Fixes: #8850

Expose `MqttSubscription`-based ctors for the `Mqttv5PahoMessageDrivenChannelAdapter`
This commit is contained in:
Artem Bilan
2024-01-16 17:33:51 -05:00
parent 39c99c0719
commit 710558f68a
4 changed files with 106 additions and 21 deletions

View File

@@ -465,6 +465,9 @@ The `HeaderMapper<MqttProperties>` is used to map `PUBLISH` frame properties (in
Standard `MqttMessage` properties, such as `qos`, `id`, `dup`, `retained`, plus received topic are always mapped to headers.
See `MqttHeaders` for more information.
Starting with version 6.3, the `Mqttv5PahoMessageDrivenChannelAdapter` provides constructors based on the `MqttSubscription` for fine-grained configuration instead of plain topic names.
When these subscriptions are provided, the `qos` option of the channel adapter cannot be used, since such a `qos` mode is a part of `MqttSubscription` API.
The following Java DSL configuration sample demonstrates how to use this channel adapter in the integration flow:
[source, java]

View File

@@ -23,4 +23,10 @@ In general the project has been moved to the latest dependency versions.
=== Security Support Changes
The `spring-integration-security` module is completely removed (being deprecated previously) in favor of API from `spring-security-messaging` module.
See xref:security.adoc[Security in Spring Integration] for more information.
See xref:security.adoc[Security in Spring Integration] for more information.
[[x6.3-mqtt]]
=== MQTT Support Changes
The fine-grained configuration based on `MqttSubscription` API is exposed on the `Mqttv5PahoMessageDrivenChannelAdapter`.
See xref:mqtt.adoc[MQTT Support] for more information.