Enum Class InstanceState
- All Implemented Interfaces:
Serializable
,Comparable<InstanceState>
,Constable
Represents the possible states of a
MicroserviceInstance
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe instance was recently created and its existence is noted.The instance was forcibly shut down and is locked in that state.The startup process was completed successfully.
The instance can now receiveRequests
The shutdown process was completed successfully.
The instance does not accept any requests.
The instance can be restarted to continue working.The shutdown process of this instance was triggered.The startup process was triggered. -
Method Summary
Modifier and TypeMethodDescriptionstatic InstanceState
Returns the enum constant of this class with the specified name.static InstanceState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATED
The instance was recently created and its existence is noted. It should be ready to start up.- See Also:
-
STARTING
The startup process was triggered.- See Also:
-
RUNNING
The startup process was completed successfully.
The instance can now receiveRequests
- See Also:
-
SHUTTING_DOWN
The shutdown process of this instance was triggered.
It does not accept subsequent requests, but it tries to finish currently active requests.- See Also:
-
SHUTDOWN
The shutdown process was completed successfully.
The instance does not accept any requests.
The instance can be restarted to continue working.- See Also:
-
KILLED
The instance was forcibly shut down and is locked in that state. All current handling processes (and potentially outgoing requests) were aborted.- See Also:
-
-
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
-