Enum Class Mqtt5ConnAckReasonCode
java.lang.Object
java.lang.Enum<Mqtt5ConnAckReasonCode>
com.hivemq.client.mqtt.mqtt5.message.connect.connack.Mqtt5ConnAckReasonCode
- All Implemented Interfaces:
Mqtt5ReasonCode,Serializable,Comparable<Mqtt5ConnAckReasonCode>,Constable
Reason Code of an
MQTT 5 ConnAck message.- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe authentication method is not supported or does not match the authentication method currently in use.The server does not accept the user name or password specified by the client.This client has been banned by administrative action.The client identifier is formed correctly but is not accepted by the server.The connection rate limit has been exceeded.The CONNECT packet is valid but is not accepted by the server.The CONNECT packet could not be parsed correctly according to the MQTT specification.The client is not authorized to connect.The CONNECT packet exceeded the maximum permissible size.The Will payload does not match the specified payload format indicator.The CONNECT packet contained data that is not allowed by the MQTT protocol.The server does not support the QoS of the Will.An implementation or administrative imposed limit has been exceeded.The server does not support retained messages, but the Will retain flag was set.The server is busy.The client should permanently use another server.The MQTT service is not available.The connection is accepted.The Will topic name is formed correctly but is not accepted by the server.The server either does not want to reveal the reason for the failure or none of the other reason codes apply.The server does not support the version of the MQTT protocol requested by the client.The client should temporarily use another server. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Mqtt5ConnAckReasonCodefromCode(int code) Returns the CONNACK Reason Code belonging to the given byte code.intgetCode()static Mqtt5ConnAckReasonCodeReturns the enum constant of this class with the specified name.static Mqtt5ConnAckReasonCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface com.hivemq.client.mqtt.mqtt5.message.Mqtt5ReasonCode
canBeSentByClient, canBeSentByServer, canBeSetByUser, isError
-
Enum Constant Details
-
SUCCESS
The connection is accepted. -
UNSPECIFIED_ERROR
The server either does not want to reveal the reason for the failure or none of the other reason codes apply. -
MALFORMED_PACKET
The CONNECT packet could not be parsed correctly according to the MQTT specification. -
PROTOCOL_ERROR
The CONNECT packet contained data that is not allowed by the MQTT protocol. -
IMPLEMENTATION_SPECIFIC_ERROR
The CONNECT packet is valid but is not accepted by the server. -
UNSUPPORTED_PROTOCOL_VERSION
The server does not support the version of the MQTT protocol requested by the client. -
CLIENT_IDENTIFIER_NOT_VALID
The client identifier is formed correctly but is not accepted by the server. -
BAD_USER_NAME_OR_PASSWORD
The server does not accept the user name or password specified by the client. -
NOT_AUTHORIZED
The client is not authorized to connect. -
SERVER_UNAVAILABLE
The MQTT service is not available. -
SERVER_BUSY
The server is busy. Try again later. -
BANNED
This client has been banned by administrative action. Contact the server administrator. -
BAD_AUTHENTICATION_METHOD
The authentication method is not supported or does not match the authentication method currently in use. -
TOPIC_NAME_INVALID
The Will topic name is formed correctly but is not accepted by the server. -
PACKET_TOO_LARGE
The CONNECT packet exceeded the maximum permissible size. -
QUOTA_EXCEEDED
An implementation or administrative imposed limit has been exceeded. -
PAYLOAD_FORMAT_INVALID
The Will payload does not match the specified payload format indicator. -
RETAIN_NOT_SUPPORTED
The server does not support retained messages, but the Will retain flag was set. -
QOS_NOT_SUPPORTED
The server does not support the QoS of the Will. -
USE_ANOTHER_SERVER
The client should temporarily use another server. -
SERVER_MOVED
The client should permanently use another server. -
CONNECTION_RATE_EXCEEDED
The connection rate limit has been exceeded.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getCode
public int getCode()- Specified by:
getCodein interfaceMqtt5ReasonCode- Returns:
- the byte code of this Reason Code.
-
fromCode
Returns the CONNACK Reason Code belonging to the given byte code.- Parameters:
code- the byte code.- Returns:
- the CONNACK Reason Code belonging to the given byte code or
nullif the byte code is not a valid CONNACK Reason Code code.
-