/**
* Register a listener to be notified when an action completes.
* <p>Once a listener is registered it will be invoked when the action the token
* is associated with either succeeds or fails.
* </p>
* @param listener to be invoked once the action completes
*/
public void setActionCallback(MqttActionListener listener);
Please fill out the form below before submitting, thank you!
sample pom.xml
sample code
expected result: is listener.onSuccess is called when connection is complete
actual result : no call is perrormed.
note using :
will result in listener.onSuccess being called.
see also : code comment from IMqttToken :