Interface UnsubackPacket

  • All Known Subinterfaces:
    ModifiableUnsubackPacket

    @Immutable
    @DoNotImplement
    public interface UnsubackPacket
    Represents an UNSUBACK packet.

    Contains all values of an MQTT 5 UNSUBACK, but will also be used to represent MQTT 3 UNSUBACK messages.

    Since:
    4.3.0, CE 2020.1
    • Method Detail

      • getPacketIdentifier

        int getPacketIdentifier()
        The packet identifier of the UNSUBACK packet.
        Returns:
        The packet identifier.
        Since:
        4.3.0, CE 2020.1
      • getReasonString

        @NotNull Optional<String> getReasonString()
        The reason string of the UNSUBACK packet.

        For an MQTT 3 client this Optional for the MQTT 5 property will always be empty (if not modified by a previous UnsubackOutboundInterceptor).

        Returns:
        An Optional containing the unsuback reason string if present.
        Since:
        4.3.0, CE 2020.1