public class PahoClient
extends org.eclipse.kapua.gateway.client.mqtt.MqttClient
| Modifier and Type | Class and Description |
|---|---|
static class |
PahoClient.Builder |
| 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,
org.eclipse.kapua.gateway.client.mqtt.MqttMessageHandler messageHandler) |
protected void |
unsubscribeMqtt(Set<String> mqttTopics) |
getCodec, getMqttClientId, internalCreateApplication, internalUnsubscribe, publish, subscribeprotected void connect()
public void close()
protected void handleConnected()
handleConnected in class org.eclipse.kapua.gateway.client.spi.AbstractClientprotected void handleDisconnected()
handleDisconnected in class org.eclipse.kapua.gateway.client.spi.AbstractClientpublic void publishMqtt(String topic, ByteBuffer payload) throws Exception
publishMqtt in class org.eclipse.kapua.gateway.client.mqtt.MqttClientExceptionprotected void publish(String topic, ByteBuffer payload) throws org.eclipse.paho.client.mqttv3.MqttException
org.eclipse.paho.client.mqttv3.MqttExceptionprotected CompletionStage<?> subscribeMqtt(String topic, org.eclipse.kapua.gateway.client.mqtt.MqttMessageHandler messageHandler) throws org.eclipse.paho.client.mqttv3.MqttException
subscribeMqtt in class org.eclipse.kapua.gateway.client.mqtt.MqttClientorg.eclipse.paho.client.mqttv3.MqttExceptionprotected void unsubscribeMqtt(Set<String> mqttTopics) throws org.eclipse.paho.client.mqttv3.MqttException
unsubscribeMqtt in class org.eclipse.kapua.gateway.client.mqtt.MqttClientorg.eclipse.paho.client.mqttv3.MqttExceptionCopyright © 2017. All rights reserved.