Interface TcpConnectResultHandler
-
public interface TcpConnectResultHandler
-
-
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 TCP connectionvoidonSuccess(MqttConnection connection)will be called when TCP connection successfully establishedvoidonTimeout(MqttConnection connection)will be called when establishing TCP connection timeout
-
-
-
Method Detail
-
onSuccess
void onSuccess(MqttConnection connection)
will be called when TCP connection successfully established- Parameters:
connection- the connection
-
onError
void onError(MqttConnection connection, java.lang.Throwable cause)
will be called when error occurred during establishing TCP connection- Parameters:
connection- the connectioncause- cause
-
onTimeout
void onTimeout(MqttConnection connection)
will be called when establishing TCP connection timeout- Parameters:
connection- the connection
-
-