Class AwsIotMqttConnectionListener
- java.lang.Object
-
- com.amazonaws.services.iot.client.mqtt.AwsIotMqttConnectionListener
-
- All Implemented Interfaces:
org.eclipse.paho.client.mqttv3.IMqttActionListener
public class AwsIotMqttConnectionListener extends Object implements org.eclipse.paho.client.mqttv3.IMqttActionListener
This class implements listener functions for the connection events from the Paho MQTT library.
-
-
Constructor Summary
Constructors Constructor Description AwsIotMqttConnectionListener(AbstractAwsIotClient client, boolean isConnect, AwsIotMessageCallback userCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonFailure(org.eclipse.paho.client.mqttv3.IMqttToken arg0, Throwable arg1)voidonSuccess(org.eclipse.paho.client.mqttv3.IMqttToken arg0)
-
-
-
Constructor Detail
-
AwsIotMqttConnectionListener
public AwsIotMqttConnectionListener(AbstractAwsIotClient client, boolean isConnect, AwsIotMessageCallback userCallback)
-
-
Method Detail
-
onSuccess
public void onSuccess(org.eclipse.paho.client.mqttv3.IMqttToken arg0)
- Specified by:
onSuccessin interfaceorg.eclipse.paho.client.mqttv3.IMqttActionListener
-
onFailure
public void onFailure(org.eclipse.paho.client.mqttv3.IMqttToken arg0, Throwable arg1)- Specified by:
onFailurein interfaceorg.eclipse.paho.client.mqttv3.IMqttActionListener
-
-