Package io.netty.handler.codec.mqtt
Enum MqttReasonCodes.Disconnect
- java.lang.Object
-
- java.lang.Enum<MqttReasonCodes.Disconnect>
-
- io.netty.handler.codec.mqtt.MqttReasonCodes.Disconnect
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MqttReasonCodes.Disconnect>
- Enclosing class:
- MqttReasonCodes
public static enum MqttReasonCodes.Disconnect extends java.lang.Enum<MqttReasonCodes.Disconnect>
Reason codes for MQTT Disconnect message.
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description protected static MqttReasonCodes.Disconnect[]
VALUES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
static MqttReasonCodes.Disconnect
valueOf(byte b)
Returns the enum constant of this type with the specified name.static MqttReasonCodes.Disconnect
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MqttReasonCodes.Disconnect[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL_DISCONNECT
public static final MqttReasonCodes.Disconnect NORMAL_DISCONNECT
-
DISCONNECT_WITH_WILL_MESSAGE
public static final MqttReasonCodes.Disconnect DISCONNECT_WITH_WILL_MESSAGE
-
UNSPECIFIED_ERROR
public static final MqttReasonCodes.Disconnect UNSPECIFIED_ERROR
-
MALFORMED_PACKET
public static final MqttReasonCodes.Disconnect MALFORMED_PACKET
-
PROTOCOL_ERROR
public static final MqttReasonCodes.Disconnect PROTOCOL_ERROR
-
IMPLEMENTATION_SPECIFIC_ERROR
public static final MqttReasonCodes.Disconnect IMPLEMENTATION_SPECIFIC_ERROR
-
NOT_AUTHORIZED
public static final MqttReasonCodes.Disconnect NOT_AUTHORIZED
-
SERVER_BUSY
public static final MqttReasonCodes.Disconnect SERVER_BUSY
-
SERVER_SHUTTING_DOWN
public static final MqttReasonCodes.Disconnect SERVER_SHUTTING_DOWN
-
KEEP_ALIVE_TIMEOUT
public static final MqttReasonCodes.Disconnect KEEP_ALIVE_TIMEOUT
-
SESSION_TAKEN_OVER
public static final MqttReasonCodes.Disconnect SESSION_TAKEN_OVER
-
TOPIC_FILTER_INVALID
public static final MqttReasonCodes.Disconnect TOPIC_FILTER_INVALID
-
TOPIC_NAME_INVALID
public static final MqttReasonCodes.Disconnect TOPIC_NAME_INVALID
-
RECEIVE_MAXIMUM_EXCEEDED
public static final MqttReasonCodes.Disconnect RECEIVE_MAXIMUM_EXCEEDED
-
TOPIC_ALIAS_INVALID
public static final MqttReasonCodes.Disconnect TOPIC_ALIAS_INVALID
-
PACKET_TOO_LARGE
public static final MqttReasonCodes.Disconnect PACKET_TOO_LARGE
-
MESSAGE_RATE_TOO_HIGH
public static final MqttReasonCodes.Disconnect MESSAGE_RATE_TOO_HIGH
-
QUOTA_EXCEEDED
public static final MqttReasonCodes.Disconnect QUOTA_EXCEEDED
-
ADMINISTRATIVE_ACTION
public static final MqttReasonCodes.Disconnect ADMINISTRATIVE_ACTION
-
PAYLOAD_FORMAT_INVALID
public static final MqttReasonCodes.Disconnect PAYLOAD_FORMAT_INVALID
-
RETAIN_NOT_SUPPORTED
public static final MqttReasonCodes.Disconnect RETAIN_NOT_SUPPORTED
-
QOS_NOT_SUPPORTED
public static final MqttReasonCodes.Disconnect QOS_NOT_SUPPORTED
-
USE_ANOTHER_SERVER
public static final MqttReasonCodes.Disconnect USE_ANOTHER_SERVER
-
SERVER_MOVED
public static final MqttReasonCodes.Disconnect SERVER_MOVED
-
SHARED_SUBSCRIPTIONS_NOT_SUPPORTED
public static final MqttReasonCodes.Disconnect SHARED_SUBSCRIPTIONS_NOT_SUPPORTED
-
CONNECTION_RATE_EXCEEDED
public static final MqttReasonCodes.Disconnect CONNECTION_RATE_EXCEEDED
-
MAXIMUM_CONNECT_TIME
public static final MqttReasonCodes.Disconnect MAXIMUM_CONNECT_TIME
-
SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED
public static final MqttReasonCodes.Disconnect SUBSCRIPTION_IDENTIFIERS_NOT_SUPPORTED
-
WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED
public static final MqttReasonCodes.Disconnect WILDCARD_SUBSCRIPTIONS_NOT_SUPPORTED
-
-
Field Detail
-
VALUES
protected static final MqttReasonCodes.Disconnect[] VALUES
-
-
Method Detail
-
values
public static MqttReasonCodes.Disconnect[] 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 (MqttReasonCodes.Disconnect c : MqttReasonCodes.Disconnect.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MqttReasonCodes.Disconnect valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
byteValue
public byte byteValue()
- Returns:
- the value number corresponding to the constant.
-
valueOf
public static MqttReasonCodes.Disconnect valueOf(byte b)
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:
b
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-