public class MqttTopicPublisher extends MqttTopicConnector implements TopicPublisher
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
mqttClient| Constructor and Description |
|---|
MqttTopicPublisher(String topicName) |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(String message,
boolean retry)
Publish a message to a topic in the message broker.
|
connect, create, disconnect, getServerURIclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, create, disconnect, getServerURIpublic MqttTopicPublisher(String topicName)
public void publish(String message, boolean retry)
TopicPublisherpublish in interface TopicPublisherCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.