Enum MqttConnectReturnCode

    • Enum Constant Detail

      • CONNECTION_REFUSED_UNACCEPTABLE_PROTOCOL_VERSION

        public static final MqttConnectReturnCode CONNECTION_REFUSED_UNACCEPTABLE_PROTOCOL_VERSION
      • CONNECTION_REFUSED_IDENTIFIER_REJECTED

        public static final MqttConnectReturnCode CONNECTION_REFUSED_IDENTIFIER_REJECTED
      • CONNECTION_REFUSED_SERVER_UNAVAILABLE

        public static final MqttConnectReturnCode CONNECTION_REFUSED_SERVER_UNAVAILABLE
      • CONNECTION_REFUSED_BAD_USER_NAME_OR_PASSWORD

        public static final MqttConnectReturnCode CONNECTION_REFUSED_BAD_USER_NAME_OR_PASSWORD
      • CONNECTION_REFUSED_NOT_AUTHORIZED

        public static final MqttConnectReturnCode CONNECTION_REFUSED_NOT_AUTHORIZED
    • Field Detail

      • VALUE_TO_CODE_MAP

        private static final java.util.Map<java.lang.Byte,​MqttConnectReturnCode> VALUE_TO_CODE_MAP
      • byteValue

        private final byte byteValue
    • Constructor Detail

      • MqttConnectReturnCode

        private MqttConnectReturnCode​(byte byteValue)
    • Method Detail

      • values

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

        public static MqttConnectReturnCode valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • byteValue

        public byte byteValue()
      • valueOf

        public static MqttConnectReturnCode valueOf​(byte b)
        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:
        b - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null