Enum DisconnectReasonCode
java.lang.Object
java.lang.Enum<DisconnectReasonCode>
com.hivemq.extension.sdk.api.packets.disconnect.DisconnectReasonCode
- All Implemented Interfaces:
Serializable,Comparable<DisconnectReasonCode>,Constable
public enum DisconnectReasonCode extends Enum<DisconnectReasonCode>
MQTT 5 disconnect reason codes are listed here.
MQTT 3 does not support sending a DISCONNECT packet from server to client.
- Since:
- 4.0.0, CE 2019.1
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description static DisconnectReasonCodevalueOf(String name)Returns the enum constant of this type with the specified name.static DisconnectReasonCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NORMAL_DISCONNECTION
This is a success code.- Since:
- 4.0.0, CE 2019.1
-
DISCONNECT_WITH_WILL_MESSAGE
Can only be used for theModifiableInboundDisconnectPacket.This is a success code.
- Since:
- 4.0.0, CE 2019.1
-
UNSPECIFIED_ERROR
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
MALFORMED_PACKET
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
PROTOCOL_ERROR
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
IMPLEMENTATION_SPECIFIC_ERROR
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
NOT_AUTHORIZED
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
SERVER_BUSY
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
SERVER_SHUTTING_DOWN
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
BAD_AUTHENTICATION_METHOD
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
KEEP_ALIVE_TIMEOUT
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
SESSION_TAKEN_OVER
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
CLIENT_IDENTIFIER_NOT_VALID
Deprecated.Must not be used for disconnect packets.This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
TOPIC_FILTER_INVALID
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
TOPIC_NAME_INVALID
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
RECEIVE_MAXIMUM_EXCEEDED
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
TOPIC_ALIAS_INVALID
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
PACKET_TOO_LARGE
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
MESSAGE_RATE_TOO_HIGH
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
QUOTA_EXCEEDED
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
ADMINISTRATIVE_ACTION
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
PAYLOAD_FORMAT_INVALID
This is an unsuccessful code.- Since:
- 4.0.0, CE 2019.1
-
RETAIN_NOT_SUPPORTED
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
QOS_NOT_SUPPORTED
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
USE_ANOTHER_SERVER
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
SERVER_MOVED
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
SHARED_SUBSCRIPTION_NOT_SUPPORTED
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
CONNECTION_RATE_EXCEEDED
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
MAXIMUM_CONNECT_TIME
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
WILDCARD_SUBSCRIPTION_NOT_SUPPORTED
Can only be used for theModifiableOutboundDisconnectPacket.This is an unsuccessful code.
- Since:
- 4.0.0, CE 2019.1
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-