public class MQTT3Operations extends Object
| Constructor and Description |
|---|
MQTT3Operations() |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(String topic,
MQTT3Connection connection,
InputStream message,
QoS qos,
boolean isRetained,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
Operation that allows the user to publish a single
MQTT3Message to a given exchange |
@Throws(value=MQTT3PublishErrorTypes.class) @MediaType(value="*/*") public void publish(String topic, @Connection MQTT3Connection connection, @Content InputStream message, @Optional(defaultValue="AT_LEAST_ONCE") QoS qos, boolean isRetained, org.mule.runtime.extension.api.runtime.process.CompletionCallback<Void,Void> completionCallback)
MQTT3Message to a given exchangetopic - the topic to which the message must be publishedconnection - the current MQTT3Connectionmessage - the content of the message to be publishedqos - the QoS with which the message will be publishedisRetained - whether the message should be retained by the brokerCopyright © 2025 MuleSoft, Inc.. All rights reserved.