Class UnsubscribePacket
java.lang.Object
software.amazon.awssdk.crt.mqtt5.packets.UnsubscribePacket
Data model of an MQTT5 UNSUBSCRIBE packet.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A class to that allows for the creation of a UnsubscribePacket. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of subscriptions that the client wishes to unsubscribe from.Returns a list of MQTT5 user properties included with the packet.static UnsubscribePacket
Creates anUnsubscribePacket
containing only a single subscription topic to unsubscribe from: topicFilter.
-
Method Details
-
of
Creates anUnsubscribePacket
containing only a single subscription topic to unsubscribe from: topicFilter.Internally this is just syntactic sugar around
UnsubscribePacketBuilder(String)
followed byUnsubscribePacket.UnsubscribePacketBuilder.build()
.- Parameters:
topicFilter
- The topic filter to unsubscribe from.- Returns:
- an immutable
UnsubscribePacket
ready for use - Throws:
NullPointerException
- iftopicFilter
isnull
-
getSubscriptions
Returns a list of subscriptions that the client wishes to unsubscribe from.- Returns:
- List of subscriptions that the client wishes to unsubscribe from.
-
getUserProperties
Returns a list of MQTT5 user properties included with the packet. See MQTT5 User Property- Returns:
- List of MQTT5 user properties included with the packet.
-