Package software.amazon.awssdk.crt.mqtt5
Interface Mqtt5ClientOptions.PublishEvents
-
- Enclosing class:
- Mqtt5ClientOptions
public static interface Mqtt5ClientOptions.PublishEventsAn 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 voidonMessageReceived(Mqtt5Client client, PublishReturn publishReturn)Called when an MQTT PUBLISH packet is received by the client.
-
-
-
Method Detail
-
onMessageReceived
void onMessageReceived(Mqtt5Client client, PublishReturn publishReturn)
Called when an MQTT PUBLISH packet is received by the client. If the PublishReturn has been already handled by a service client, then the callback will not get invoked. Checkout Mqtt5ListenerOptions.ListenerPublishEvents for more details.- Parameters:
client- The client that has received the messagepublishReturn- All of the data that was received from the server
-
-