Enum QoS

  • All Implemented Interfaces:
    Serializable, Comparable<QoS>

    public enum QoS
    extends Enum<QoS>
    Denotes the QoS level (in Hono's terms) with which a message was sent by the device.
    • Enum Constant Detail

      • AT_MOST_ONCE

        public static final QoS AT_MOST_ONCE
      • AT_LEAST_ONCE

        public static final QoS AT_LEAST_ONCE
      • UNKNOWN

        public static final QoS UNKNOWN
        Indicates that the device set a QoS level which is not known or supported.
    • Method Detail

      • values

        public static QoS[] 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 (QoS c : QoS.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static QoS 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