Interface MqttPublishResultHandler
-
public interface MqttPublishResultHandler
-
-
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 publishing a messagevoidonSuccess(MqttConnection connection)will be called when a message published successfully
-
-
-
Method Detail
-
onSuccess
void onSuccess(MqttConnection connection)
will be called when a message published successfully- Parameters:
connection- the mqtt connection
-
onError
void onError(MqttConnection connection, java.lang.Throwable cause)
will be called when error occurred during publishing a message- Parameters:
connection- the mqtt connectioncause- cause
-
-