Interface PubrelPacket
- All Known Subinterfaces:
ModifiablePubrelPacket
@Immutable @DoNotImplement public interface PubrelPacket
Represents a PUBREL packet.
Contains all values of an MQTT 5 PUBREL, but will also used to represent MQTT 3 PUBREL packets.
- Since:
- 4.3.0, CE 2020.1
-
Method Summary
Modifier and Type Method Description intgetPacketIdentifier()The packet identifier of the PUBREL.@NotNull PubrelReasonCodegetReasonCode()The reason code from the PUBREL packet.@NotNull Optional<String>getReasonString()The reason string of the PUBREL packet.@NotNull UserPropertiesgetUserProperties()The user properties from the PUBREL packet.
-
Method Details
-
getPacketIdentifier
int getPacketIdentifier()The packet identifier of the PUBREL.- Returns:
- The packet identifier.
- Since:
- 4.3.0, CE 2020.1
-
getReasonCode
The reason code from the PUBREL packet.- Returns:
- The pubrel reason code.
- Since:
- 4.3.0, CE 2020.1
- See Also:
How reason codes are translated from MQTT 5 to MQTT 3.
-
getReasonString
The reason string of the PUBREL packet.For an MQTT 3 client this
Optionalfor the MQTT 5 property will always be empty (if not modified by a previousPubrelInboundInterceptororPubrelOutboundInterceptor).- Returns:
- An
Optionalcontaining the pubrel reason string if present. - Since:
- 4.3.0, CE 2020.1
-
getUserProperties
The user properties from the PUBREL packet.For an MQTT 3 client this MQTT 5 property will always be empty (if not modified by a previous
PubrelInboundInterceptororPubrelOutboundInterceptor).- Returns:
- The user properties.
- Since:
- 4.3.0, CE 2020.1
-