Package software.amazon.awssdk.crt.mqtt5
Interface Mqtt5ListenerOptions.ListenerPublishEvents
-
- Enclosing class:
- Mqtt5ListenerOptions
public static interface Mqtt5ListenerOptions.ListenerPublishEventsAn interface that defines all of the publish functions the Mqtt5Client will call when it receives a publish packet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanonMessageReceived(Mqtt5Client client, PublishReturn publishReturn)Called when an MQTT PUBLISH packet is received by the client
-
-
-
Method Detail
-
onMessageReceived
boolean onMessageReceived(Mqtt5Client client, PublishReturn publishReturn)
Called when an MQTT PUBLISH packet is received by the client- Parameters:
client- The client that has received the messagepublishReturn- All of the data that was received from the server- Returns:
- return true if the message get processed, otherwise false If the message get processed, it will not passed down anymore. The client and other listener would not get the publishEvent anymore.
-
-