Interface MqttConnectResultHandler
-
public interface MqttConnectResultHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonError(MqttConnection connection, java.lang.Throwable cause)will be called when error occurred during establishing MQTT connectionvoidonSuccess(MqttConnection connection)will be called when MQTT connection successfully establishedvoidonTimeout(MqttConnection connection)will be called when establishing MQTT connection timeout
-
-
-
Method Detail
-
onSuccess
void onSuccess(MqttConnection connection)
will be called when MQTT connection successfully established- Parameters:
connection- the mqtt connection
-
onError
void onError(MqttConnection connection, java.lang.Throwable cause)
will be called when error occurred during establishing MQTT connection- Parameters:
connection- the mqtt connectioncause- cause
-
onTimeout
void onTimeout(MqttConnection connection)
will be called when establishing MQTT connection timeout- Parameters:
connection- the mqtt connection
-
-