Package com.hivemq.adapter.sdk.api.state
Enum Class ProtocolAdapterState.ConnectionStatus
java.lang.Object
java.lang.Enum<ProtocolAdapterState.ConnectionStatus>
com.hivemq.adapter.sdk.api.state.ProtocolAdapterState.ConnectionStatus
- All Implemented Interfaces:
Serializable,Comparable<ProtocolAdapterState.ConnectionStatus>,Constable
- Enclosing interface:
- ProtocolAdapterState
public static enum ProtocolAdapterState.ConnectionStatus
extends Enum<ProtocolAdapterState.ConnectionStatus>
Enum for the connection status for this adapter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe adapter is currently connected to the PLC.The adapter is currently disconnected from the PLC.There is currently an error when trying to connect to the PLC.The adapter does not establish a standing connection to a PLC.The connection status for this adapter is currently not known. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECTED
The adapter is currently connected to the PLC. -
DISCONNECTED
The adapter is currently disconnected from the PLC. -
STATELESS
The adapter does not establish a standing connection to a PLC. -
UNKNOWN
The connection status for this adapter is currently not known. -
ERROR
There is currently an error when trying to connect to the PLC.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-