Interface MqttMessageConverter
- All Superinterfaces:
MessageConverter
- All Known Implementing Classes:
DefaultPahoMessageConverter
Extension of
MessageConverter
allowing the topic to be added as
a header.- Since:
- 4.0
- Author:
- Gary Russell, Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionstatic MessageProcessor<Integer>
static MessageProcessor<Boolean>
default Message<?>
Convert to a Message.toMessageBuilder
(String topic, org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage) Convert to a message builder.Methods inherited from interface org.springframework.messaging.converter.MessageConverter
fromMessage, toMessage
-
Method Details
-
toMessage
Convert to a Message. The default implementation callstoMessageBuilder(String, MqttMessage)
.- Parameters:
topic
- the topic.mqttMessage
- the MQTT message.- Returns:
- the Message.
-
toMessageBuilder
AbstractIntegrationMessageBuilder<?> toMessageBuilder(String topic, org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage) Convert to a message builder.- Parameters:
topic
- the topic.mqttMessage
- the MQTT message.- Returns:
- the builder.
-
defaultQosProcessor
-
defaultRetainedProcessor
-