public enum Mqtt5ConnAckReasonCode extends java.lang.Enum<Mqtt5ConnAckReasonCode> implements Mqtt5ReasonCode
MQTT 5 ConnAck message
.Enum Constant and Description |
---|
BAD_AUTHENTICATION_METHOD
The authentication method is not supported or does not match the authentication method currently in use.
|
BAD_USER_NAME_OR_PASSWORD
The server does not accept the user name or password specified by the client.
|
BANNED
This client has been banned by administrative action.
|
CLIENT_IDENTIFIER_NOT_VALID
The client identifier is formed correctly but is not accepted by the server.
|
CONNECTION_RATE_EXCEEDED
The connection rate limit has been exceeded.
|
IMPLEMENTATION_SPECIFIC_ERROR
The CONNECT packet is valid but is not accepted by the server.
|
MALFORMED_PACKET
The CONNECT packet could not be parsed correctly according to the MQTT specification.
|
NOT_AUTHORIZED
The client is not authorized to connect.
|
PACKET_TOO_LARGE
The CONNECT packet exceeded the maximum permissible size.
|
PAYLOAD_FORMAT_INVALID
The Will payload does not match the specified payload format indicator.
|
PROTOCOL_ERROR
The CONNECT packet contained data that is not allowed by the MQTT protocol.
|
QOS_NOT_SUPPORTED
The server does not support the QoS of the Will.
|
QUOTA_EXCEEDED
An implementation or administrative imposed limit has been exceeded.
|
RETAIN_NOT_SUPPORTED
The server does not support retained messages, but the Will retain flag was set.
|
SERVER_BUSY
The server is busy.
|
SERVER_MOVED
The client should permanently use another server.
|
SERVER_UNAVAILABLE
The MQTT service is not available.
|
SUCCESS
The connection is accepted.
|
TOPIC_NAME_INVALID
The Will topic name is formed correctly but is not accepted by the server.
|
UNSPECIFIED_ERROR
The server either does not want to reveal the reason for the failure or none of the other reason codes apply.
|
UNSUPPORTED_PROTOCOL_VERSION
The server does not support the version of the MQTT protocol requested by the client.
|
USE_ANOTHER_SERVER
The client should temporarily use another server.
|
Modifier and Type | Method and Description |
---|---|
static @Nullable Mqtt5ConnAckReasonCode |
fromCode(int code)
Returns the CONNACK Reason Code belonging to the given byte code.
|
int |
getCode() |
static Mqtt5ConnAckReasonCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mqtt5ConnAckReasonCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
canBeSentByClient, canBeSentByServer, canBeSetByUser, isError
public static final Mqtt5ConnAckReasonCode SUCCESS
public static final Mqtt5ConnAckReasonCode UNSPECIFIED_ERROR
public static final Mqtt5ConnAckReasonCode MALFORMED_PACKET
public static final Mqtt5ConnAckReasonCode PROTOCOL_ERROR
public static final Mqtt5ConnAckReasonCode IMPLEMENTATION_SPECIFIC_ERROR
public static final Mqtt5ConnAckReasonCode UNSUPPORTED_PROTOCOL_VERSION
public static final Mqtt5ConnAckReasonCode CLIENT_IDENTIFIER_NOT_VALID
public static final Mqtt5ConnAckReasonCode BAD_USER_NAME_OR_PASSWORD
public static final Mqtt5ConnAckReasonCode NOT_AUTHORIZED
public static final Mqtt5ConnAckReasonCode SERVER_UNAVAILABLE
public static final Mqtt5ConnAckReasonCode SERVER_BUSY
public static final Mqtt5ConnAckReasonCode BANNED
public static final Mqtt5ConnAckReasonCode BAD_AUTHENTICATION_METHOD
public static final Mqtt5ConnAckReasonCode TOPIC_NAME_INVALID
public static final Mqtt5ConnAckReasonCode PACKET_TOO_LARGE
public static final Mqtt5ConnAckReasonCode QUOTA_EXCEEDED
public static final Mqtt5ConnAckReasonCode PAYLOAD_FORMAT_INVALID
public static final Mqtt5ConnAckReasonCode RETAIN_NOT_SUPPORTED
public static final Mqtt5ConnAckReasonCode QOS_NOT_SUPPORTED
public static final Mqtt5ConnAckReasonCode USE_ANOTHER_SERVER
public static final Mqtt5ConnAckReasonCode SERVER_MOVED
public static final Mqtt5ConnAckReasonCode CONNECTION_RATE_EXCEEDED
public static Mqtt5ConnAckReasonCode[] values()
for (Mqtt5ConnAckReasonCode c : Mqtt5ConnAckReasonCode.values()) System.out.println(c);
public static Mqtt5ConnAckReasonCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCode()
getCode
in interface Mqtt5ReasonCode
@Nullable public static @Nullable Mqtt5ConnAckReasonCode fromCode(int code)
code
- the byte code.null
if the byte code is not a
valid CONNACK Reason Code code.