Enum AWSIotConnectionStatus
- java.lang.Object
-
- java.lang.Enum<AWSIotConnectionStatus>
-
- com.amazonaws.services.iot.client.AWSIotConnectionStatus
-
- All Implemented Interfaces:
Serializable,Comparable<AWSIotConnectionStatus>
public enum AWSIotConnectionStatus extends Enum<AWSIotConnectionStatus>
Connection status that can be retrieved throughAWSIotMqttClient.getConnectionStatus().
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTEDClient successfully connected.DISCONNECTEDNot connected.RECONNECTINGAutomatically reconnecting after connection loss.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AWSIotConnectionStatusvalueOf(String name)Returns the enum constant of this type with the specified name.static AWSIotConnectionStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONNECTED
public static final AWSIotConnectionStatus CONNECTED
Client successfully connected.
-
DISCONNECTED
public static final AWSIotConnectionStatus DISCONNECTED
Not connected.
-
RECONNECTING
public static final AWSIotConnectionStatus RECONNECTING
Automatically reconnecting after connection loss.
-
-
Method Detail
-
values
public static AWSIotConnectionStatus[] 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 (AWSIotConnectionStatus c : AWSIotConnectionStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AWSIotConnectionStatus 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
-
-