public interface MqttMessageConverter extends MessageConverter
MessageConverter
allowing the topic to be added as
a header.Modifier and Type | Method and Description |
---|---|
static MessageProcessor<Integer> |
defaultQosProcessor() |
static MessageProcessor<Boolean> |
defaultRetainedProcessor() |
Message<?> |
toMessage(String topic,
org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage)
Convert to a Message.
|
AbstractIntegrationMessageBuilder<?> |
toMessageBuilder(String topic,
org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage)
Convert to a message builder.
|
fromMessage, toMessage
Message<?> toMessage(String topic, org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage)
topic
- the topic.mqttMessage
- the MQTT message.AbstractIntegrationMessageBuilder<?> toMessageBuilder(String topic, org.eclipse.paho.client.mqttv3.MqttMessage mqttMessage)
topic
- the topic.mqttMessage
- the MQTT message.static MessageProcessor<Integer> defaultQosProcessor()
static MessageProcessor<Boolean> defaultRetainedProcessor()