|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MqttClientDebugListener
Allows you to see low level events from within an MqttClient
. This has a performance impact and should only be used for debugging purposes. The same
executor service that calls the AsyncClientListener
and MqttClientListener
methods is used to invoke the methods in implementations of this
interface.
Method Summary | |
---|---|
void |
connectionClosed(MqttClient client,
String localAddress,
String remoteAddress)
Called when a connection is closed. |
void |
connectionOpened(MqttClient client,
String localAddress,
String remoteAddress)
Called when a connection is established. |
void |
messageReceived(MqttClient client,
String localAddress,
String remoteAddress,
MqttMessage message)
Called when a message is received |
void |
messageSent(MqttClient client,
String localAddress,
String remoteAddress,
MqttMessage message)
Called when a message is sent |
Method Detail |
---|
void connectionOpened(MqttClient client, String localAddress, String remoteAddress)
client
- The client that owns the connection that openedlocalAddress
- Local address of the MQTT connectionremoteAddress
- Remote address of the MQTT connectionvoid connectionClosed(MqttClient client, String localAddress, String remoteAddress)
client
- The client that owns the connection that closedlocalAddress
- Local address of the MQTT connectionremoteAddress
- Remote address of the MQTT connectionvoid messageReceived(MqttClient client, String localAddress, String remoteAddress, MqttMessage message)
client
- The client that received the messagelocalAddress
- Local address of the MQTT connectionremoteAddress
- Remote address of the MQTT connectionmessage
- The message that was receivedvoid messageSent(MqttClient client, String localAddress, String remoteAddress, MqttMessage message)
client
- The client that sent the messagelocalAddress
- Local address of the MQTT connectionremoteAddress
- Remote address of the MQTT connectionmessage
- The message that was sent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |