Interface ModifiableSubscribePacket


  • @DoNotImplement
    public interface ModifiableSubscribePacket
    A copy of an SubscribePacket that can be modified for onward delivery.
    Since:
    4.2.0, CE 2020.1
    • Method Detail

      • getSubscriptionIdentifier

        @NotNull Optional<Integer> getSubscriptionIdentifier()
        If this property is present, it contains the subscription identifier for the SUBSCRIBE packet.

        For an MQTT 3 client this Optional for the MQTT 5 property will always be empty.

        It is not possible to change the subscription identifier.

        Returns:
        An Optional containing the subscription identifier of the SUBSCRIBE packet if present.
        Since:
        4.2.0, CE 2020.1
      • getPacketId

        int getPacketId()
        The packet identifier of the SUBSCRIBE packet.

        It is not possible to change the packet identifier.

        Returns:
        The packet identifier.
        Since:
        4.2.0, CE 2020.1