Enum QoS

    • Enum Constant Detail

      • DEFAULT

        public static final QoS DEFAULT
        Default behavior.
      • REPLY_REQUIRED

        public static final QoS REPLY_REQUIRED
        Require reply (acknowledgment for reliable operation).
      • UNUSED_0

        public static final QoS UNUSED_0
        Best-effort option (no reply).
      • PROCESS

        public static final QoS PROCESS
        Process option.
      • INIT

        public static final QoS INIT
        Initialize option.
      • DESTROY

        public static final QoS DESTROY
        Destroy option.
      • UNUSED_1

        public static final QoS UNUSED_1
        Share data option.
      • GET

        public static final QoS GET
        Get.
      • GET_PUT

        public static final QoS GET_PUT
        Get-put.
    • 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
      • getMaskValue

        public int getMaskValue()
        Get bit-mask value of this option.
        Returns:
        bit-mask value.
      • isSet

        public boolean isSet​(int qos)
        Check if option is set.
        Parameters:
        qos - QoS options to check.
        Returns:
        true if option is set.