Enum ServiceState
- All Implemented Interfaces:
Serializable,Comparable<ServiceState>,java.lang.constant.Constable
Holds all states a
Service can be in.- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThisServicehas all endpoints connected.ThisServicehas all endpoints connecting.ThisServicehas at least one endpoint connected.ThisServiceis disconnected (has endpoints and all are disconnected)ThisServicehas all endpoints disconnecting.ThisServiceis idle (no endpoints attached at all) -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceStateReturns the enum constant of this type with the specified name.static ServiceState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IDLE
ThisServiceis idle (no endpoints attached at all) -
DISCONNECTED
ThisServiceis disconnected (has endpoints and all are disconnected) -
CONNECTING
ThisServicehas all endpoints connecting. -
CONNECTED
ThisServicehas all endpoints connected. -
DISCONNECTING
ThisServicehas all endpoints disconnecting. -
DEGRADED
ThisServicehas at least one endpoint connected.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-