|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IEsfMqttCallback
| Method Summary | |
|---|---|
void |
connectionLost()
Notification that the client has lost its connection with the broker. |
void |
publishArrived(java.lang.String clientId,
java.lang.String sensorId,
java.lang.String topic,
byte[] payload,
int qos)
Called by the MQTT session when it receives a publish message from the broker. |
void |
published(int pubId)
Called by the MQTT session when a publish has been fully acknowledged by the broker, as appropriate for the quality of service. |
void |
subscribed(int subId)
Called by the MQTT session when a subscribe has been fully acknowledged by the broker. |
void |
unsubscribed(int unsubId)
Called by the MQTT session when an unsubscribe has been fully acknowledged by the broker. |
| Method Detail |
|---|
void publishArrived(java.lang.String clientId,
java.lang.String sensorId,
java.lang.String topic,
byte[] payload,
int qos)
clientId - A String representing the client IDsensorId - A String representing the sensor ID.topic - A String representing the topic the message arrived onpayload - A byte array representing the payload of the message.qos - An integer representing the quality of service the message was published onvoid published(int pubId)
pubId - The message id of the published messagevoid subscribed(int subId)
subId - The message id of the subscribe messagevoid unsubscribed(int unsubId)
unsubId - The message id of the unsubscribe message
void connectionLost()
throws java.lang.Exception
java.lang.Exception - thrown if the reconnect attempt failed (generic client only).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||