public class MqttTopicSubscriber extends MqttTopicConnector implements TopicSubscriber
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
mqttClient| Constructor and Description |
|---|
MqttTopicSubscriber(MessageListener messageListener,
String topicName) |
| Modifier and Type | Method and Description |
|---|---|
void |
subscribe()
Subscribe to topic.
|
connect, create, disconnect, getServerURIclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, create, disconnect, getServerURIpublic MqttTopicSubscriber(MessageListener messageListener, String topicName)
public void subscribe()
subscribe in interface TopicSubscriberCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.