Enum Class MqttConnectReturnCode

java.lang.Object
java.lang.Enum<MqttConnectReturnCode>
com.swiftmq.impl.mqtt.v311.netty.handler.codec.mqtt.MqttConnectReturnCode
All Implemented Interfaces:
Serializable, Comparable<MqttConnectReturnCode>, Constable

public enum MqttConnectReturnCode extends Enum<MqttConnectReturnCode>
Return Code of MqttConnAckMessage
  • Enum Constant Details

    • CONNECTION_ACCEPTED

      public static final MqttConnectReturnCode CONNECTION_ACCEPTED
    • 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
  • Method Details

    • values

      public static MqttConnectReturnCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MqttConnectReturnCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • byteValue

      public byte byteValue()
    • valueOf

      public static MqttConnectReturnCode valueOf(byte b)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null