public enum MqttDisconnectSource extends Enum<MqttDisconnectSource>
| Enum Constant and Description |
|---|
CLIENT
The client itself (without interaction of the user) sent a Disconnect message or closed the connection without a
Disconnect message.
|
SERVER
The server sent a Disconnect message or closed the connection without a Disconnect message.
|
USER
The user explicitly called disconnect.
|
| Modifier and Type | Method and Description |
|---|---|
static MqttDisconnectSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MqttDisconnectSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttDisconnectSource USER
public static final MqttDisconnectSource CLIENT
This can happen if
public static final MqttDisconnectSource SERVER
public static MqttDisconnectSource[] values()
for (MqttDisconnectSource c : MqttDisconnectSource.values()) System.out.println(c);
public static MqttDisconnectSource valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null