public interface MqttCallbackExtended extends MqttCallback
MqttCallback
to allow new callbacks
without breaking the API for existing applications.
Classes implementing this interface can be registered on
both types of client: IMqttClient.setCallback(MqttCallback)
and IMqttAsyncClient.setCallback(MqttCallback)
Modifier and Type | Method and Description |
---|---|
void |
connectComplete(boolean reconnect,
java.lang.String serverURI)
Called when the connection to the server is completed successfully.
|
connectionLost, deliveryComplete, messageArrived
void connectComplete(boolean reconnect, java.lang.String serverURI)
reconnect
- If true, the connection was the result of automatic reconnect.serverURI
- The server URI that the connection was made to.