public enum IotHubConnectionStatus extends java.lang.Enum<IotHubConnectionStatus>
| Enum Constant and Description |
|---|
CONNECTED
The device or module is connected.
|
DISCONNECTED
The device or module is disconnected.
|
DISCONNECTED_RETRYING
The device or module is attempting to reconnect.
|
| Modifier and Type | Method and Description |
|---|---|
static IotHubConnectionStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IotHubConnectionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IotHubConnectionStatus CONNECTED
The client is connected, and ready to be used.
public static final IotHubConnectionStatus DISCONNECTED
Inspect the associated IotHubConnectionStatusChangeReason returned (and exception thrown, if any), and take appropriate action.
public static final IotHubConnectionStatus DISCONNECTED_RETRYING
The client is attempting to recover the connection. Do NOT close or open the client instance when it is retrying.
public static IotHubConnectionStatus[] values()
for (IotHubConnectionStatus c : IotHubConnectionStatus.values()) System.out.println(c);
public static IotHubConnectionStatus 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 nullCopyright © 2023. All rights reserved.