Enum DisconnectedReasonCode
- java.lang.Object
-
- java.lang.Enum<DisconnectedReasonCode>
-
- com.hivemq.extension.sdk.api.packets.general.DisconnectedReasonCode
-
- All Implemented Interfaces:
Serializable
,Comparable<DisconnectedReasonCode>
public enum DisconnectedReasonCode extends Enum<DisconnectedReasonCode>
MQTT 5 CONNACK and DISCONNECT reason codes are listed here.- Since:
- 4.0.0, CE 2019.1
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DisconnectedReasonCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static DisconnectedReasonCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED_ERROR
public static final DisconnectedReasonCode UNSPECIFIED_ERROR
- Since:
- 4.0.0, CE 2019.1
-
MALFORMED_PACKET
public static final DisconnectedReasonCode MALFORMED_PACKET
- Since:
- 4.0.0, CE 2019.1
-
PROTOCOL_ERROR
public static final DisconnectedReasonCode PROTOCOL_ERROR
- Since:
- 4.0.0, CE 2019.1
-
IMPLEMENTATION_SPECIFIC_ERROR
public static final DisconnectedReasonCode IMPLEMENTATION_SPECIFIC_ERROR
- Since:
- 4.0.0, CE 2019.1
-
NOT_AUTHORIZED
public static final DisconnectedReasonCode NOT_AUTHORIZED
- Since:
- 4.0.0, CE 2019.1
-
SERVER_BUSY
public static final DisconnectedReasonCode SERVER_BUSY
- Since:
- 4.0.0, CE 2019.1
-
BAD_AUTHENTICATION_METHOD
public static final DisconnectedReasonCode BAD_AUTHENTICATION_METHOD
- Since:
- 4.0.0, CE 2019.1
-
TOPIC_NAME_INVALID
public static final DisconnectedReasonCode TOPIC_NAME_INVALID
- Since:
- 4.0.0, CE 2019.1
-
PACKET_TOO_LARGE
public static final DisconnectedReasonCode PACKET_TOO_LARGE
- Since:
- 4.0.0, CE 2019.1
-
QUOTA_EXCEEDED
public static final DisconnectedReasonCode QUOTA_EXCEEDED
- Since:
- 4.0.0, CE 2019.1
-
PAYLOAD_FORMAT_INVALID
public static final DisconnectedReasonCode PAYLOAD_FORMAT_INVALID
- Since:
- 4.0.0, CE 2019.1
-
RETAIN_NOT_SUPPORTED
public static final DisconnectedReasonCode RETAIN_NOT_SUPPORTED
- Since:
- 4.0.0, CE 2019.1
-
QOS_NOT_SUPPORTED
public static final DisconnectedReasonCode QOS_NOT_SUPPORTED
- Since:
- 4.0.0, CE 2019.1
-
USE_ANOTHER_SERVER
public static final DisconnectedReasonCode USE_ANOTHER_SERVER
- Since:
- 4.0.0, CE 2019.1
-
SERVER_MOVED
public static final DisconnectedReasonCode SERVER_MOVED
- Since:
- 4.0.0, CE 2019.1
-
CONNECTION_RATE_EXCEEDED
public static final DisconnectedReasonCode CONNECTION_RATE_EXCEEDED
- Since:
- 4.0.0, CE 2019.1
-
SUCCESS
@Deprecated public static final DisconnectedReasonCode SUCCESS
Deprecated.since 4.3.0, because SUCCESS is never a reason code for a disconnect.- Since:
- 4.0.0, CE 2019.1
-
UNSUPPORTED_PROTOCOL_VERSION
public static final DisconnectedReasonCode UNSUPPORTED_PROTOCOL_VERSION
- Since:
- 4.0.0, CE 2019.1
-
CLIENT_IDENTIFIER_NOT_VALID
public static final DisconnectedReasonCode CLIENT_IDENTIFIER_NOT_VALID
- Since:
- 4.0.0, CE 2019.1
-
BAD_USER_NAME_OR_PASSWORD
public static final DisconnectedReasonCode BAD_USER_NAME_OR_PASSWORD
- Since:
- 4.0.0, CE 2019.1
-
SERVER_UNAVAILABLE
public static final DisconnectedReasonCode SERVER_UNAVAILABLE
- Since:
- 4.0.0, CE 2019.1
-
BANNED
public static final DisconnectedReasonCode BANNED
- Since:
- 4.0.0, CE 2019.1
-
NORMAL_DISCONNECTION
public static final DisconnectedReasonCode NORMAL_DISCONNECTION
- Since:
- 4.0.0, CE 2019.1
-
DISCONNECT_WITH_WILL_MESSAGE
public static final DisconnectedReasonCode DISCONNECT_WITH_WILL_MESSAGE
- Since:
- 4.0.0, CE 2019.1
-
SERVER_SHUTTING_DOWN
public static final DisconnectedReasonCode SERVER_SHUTTING_DOWN
- Since:
- 4.0.0, CE 2019.1
-
KEEP_ALIVE_TIMEOUT
public static final DisconnectedReasonCode KEEP_ALIVE_TIMEOUT
- Since:
- 4.0.0, CE 2019.1
-
SESSION_TAKEN_OVER
public static final DisconnectedReasonCode SESSION_TAKEN_OVER
- Since:
- 4.0.0, CE 2019.1
-
TOPIC_FILTER_INVALID
public static final DisconnectedReasonCode TOPIC_FILTER_INVALID
- Since:
- 4.0.0, CE 2019.1
-
RECEIVE_MAXIMUM_EXCEEDED
public static final DisconnectedReasonCode RECEIVE_MAXIMUM_EXCEEDED
- Since:
- 4.0.0, CE 2019.1
-
TOPIC_ALIAS_INVALID
public static final DisconnectedReasonCode TOPIC_ALIAS_INVALID
- Since:
- 4.0.0, CE 2019.1
-
MESSAGE_RATE_TOO_HIGH
public static final DisconnectedReasonCode MESSAGE_RATE_TOO_HIGH
- Since:
- 4.0.0, CE 2019.1
-
ADMINISTRATIVE_ACTION
public static final DisconnectedReasonCode ADMINISTRATIVE_ACTION
- Since:
- 4.0.0, CE 2019.1
-
SHARED_SUBSCRIPTION_NOT_SUPPORTED
public static final DisconnectedReasonCode SHARED_SUBSCRIPTION_NOT_SUPPORTED
- Since:
- 4.0.0, CE 2019.1
-
MAXIMUM_CONNECT_TIME
public static final DisconnectedReasonCode MAXIMUM_CONNECT_TIME
- Since:
- 4.0.0, CE 2019.1
-
SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED
public static final DisconnectedReasonCode SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED
- Since:
- 4.0.0, CE 2019.1
-
WILDCARD_SUBSCRIPTION_NOT_SUPPORTED
public static final DisconnectedReasonCode WILDCARD_SUBSCRIPTION_NOT_SUPPORTED
- Since:
- 4.0.0, CE 2019.1
-
-
Method Detail
-
values
public static DisconnectedReasonCode[] 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 (DisconnectedReasonCode c : DisconnectedReasonCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DisconnectedReasonCode 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 nameNullPointerException
- if the argument is null
-
-