public class PahoClient extends MqttClient
| Modifier and Type | Class and Description |
|---|---|
static class |
PahoClient.Builder |
executor| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
connect() |
protected void |
handleConnected() |
protected void |
handleDisconnected() |
protected void |
handleMessageArrived(String topic,
org.eclipse.paho.client.mqttv3.MqttMessage message) |
protected void |
publish(String topic,
ByteBuffer payload) |
void |
publishMqtt(String topic,
ByteBuffer payload) |
protected CompletionStage<?> |
subscribeMqtt(String topic,
MqttMessageHandler messageHandler) |
protected void |
unsubscribeMqtt(Set<String> mqttTopics) |
getCodec, getMqttClientId, internalCreateApplication, internalUnsubscribe, publish, subscribebuildApplication, handleApplicationClosed, internalBuildApplication, internalCloseApplication, notifyAddApplication, notifyConnected, notifyDisconnected, notifyRemoveApplication, transportprotected void connect()
public void close()
protected void handleConnected()
handleConnected in class AbstractClientprotected void handleDisconnected()
handleDisconnected in class AbstractClientpublic void publishMqtt(String topic, ByteBuffer payload) throws Exception
publishMqtt in class MqttClientExceptionprotected void publish(String topic, ByteBuffer payload) throws org.eclipse.paho.client.mqttv3.MqttException
org.eclipse.paho.client.mqttv3.MqttExceptionprotected CompletionStage<?> subscribeMqtt(String topic, MqttMessageHandler messageHandler) throws org.eclipse.paho.client.mqttv3.MqttException
subscribeMqtt in class MqttClientorg.eclipse.paho.client.mqttv3.MqttExceptionprotected void unsubscribeMqtt(Set<String> mqttTopics) throws org.eclipse.paho.client.mqttv3.MqttException
unsubscribeMqtt in class MqttClientorg.eclipse.paho.client.mqttv3.MqttExceptionprotected void handleMessageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage message) throws Exception
ExceptionCopyright © 2017. All rights reserved.