Enum AckReasonCode

  • All Implemented Interfaces:
    Serializable, Comparable<AckReasonCode>

    public enum AckReasonCode
    extends Enum<AckReasonCode>
    MQTT 5 Reason codes for PUBACK and PUBREC.

    MQTT 3 does not support reason codes for the above mentioned MQTT packets.

    Since:
    4.0.0, CE 2019.1
    • Enum Constant Detail

      • SUCCESS

        public static final AckReasonCode SUCCESS
        Since:
        4.0.0, CE 2019.1
      • NO_MATCHING_SUBSCRIBERS

        public static final AckReasonCode NO_MATCHING_SUBSCRIBERS
        Since:
        4.0.0, CE 2019.1
      • UNSPECIFIED_ERROR

        public static final AckReasonCode UNSPECIFIED_ERROR
        Since:
        4.0.0, CE 2019.1
      • IMPLEMENTATION_SPECIFIC_ERROR

        public static final AckReasonCode IMPLEMENTATION_SPECIFIC_ERROR
        Since:
        4.0.0, CE 2019.1
      • NOT_AUTHORIZED

        public static final AckReasonCode NOT_AUTHORIZED
        Since:
        4.0.0, CE 2019.1
      • TOPIC_NAME_INVALID

        public static final AckReasonCode TOPIC_NAME_INVALID
        Since:
        4.0.0, CE 2019.1
      • PACKET_IDENTIFIER_IN_USE

        public static final AckReasonCode PACKET_IDENTIFIER_IN_USE
        Since:
        4.0.0, CE 2019.1
      • QUOTA_EXCEEDED

        public static final AckReasonCode QUOTA_EXCEEDED
        Since:
        4.0.0, CE 2019.1
      • PAYLOAD_FORMAT_INVALID

        public static final AckReasonCode PAYLOAD_FORMAT_INVALID
        Since:
        4.0.0, CE 2019.1
    • Method Detail

      • values

        public static AckReasonCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AckReasonCode c : AckReasonCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AckReasonCode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null