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, subscribe
buildApplication, handleApplicationClosed, internalBuildApplication, internalCloseApplication, notifyAddApplication, notifyConnected, notifyDisconnected, notifyRemoveApplication, transport
protected void connect()
public void close()
protected void handleConnected()
handleConnected
in class AbstractClient
protected void handleDisconnected()
handleDisconnected
in class AbstractClient
public void publishMqtt(String topic, ByteBuffer payload) throws Exception
publishMqtt
in class MqttClient
Exception
protected void publish(String topic, ByteBuffer payload) throws org.eclipse.paho.client.mqttv3.MqttException
org.eclipse.paho.client.mqttv3.MqttException
protected CompletionStage<?> subscribeMqtt(String topic, MqttMessageHandler messageHandler) throws org.eclipse.paho.client.mqttv3.MqttException
subscribeMqtt
in class MqttClient
org.eclipse.paho.client.mqttv3.MqttException
protected void unsubscribeMqtt(Set<String> mqttTopics) throws org.eclipse.paho.client.mqttv3.MqttException
unsubscribeMqtt
in class MqttClient
org.eclipse.paho.client.mqttv3.MqttException
protected void handleMessageArrived(String topic, org.eclipse.paho.client.mqttv3.MqttMessage message) throws Exception
Exception
Copyright © 2017. All rights reserved.