public abstract class MqttTopicConnector extends Object implements TopicConnector
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.paho.client.mqttv3.MqttClient |
mqttClient |
| Constructor and Description |
|---|
MqttTopicConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connect to message broker using MQTT client object created.
|
void |
create()
Create MQTT client object with required configuration.
|
void |
disconnect()
Disconnect from message broker and close the connection.
|
String |
getServerURI()
Return server URI.
|
public void connect()
connect in interface TopicConnectorpublic void create()
create in interface TopicConnectorpublic void disconnect()
disconnect in interface TopicConnectorpublic String getServerURI()
getServerURI in interface TopicConnectorCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.