Package net.solarnetwork.domain
Enum Class InstructionStatus.InstructionState
java.lang.Object
java.lang.Enum<InstructionStatus.InstructionState>
net.solarnetwork.domain.InstructionStatus.InstructionState
- All Implemented Interfaces:
Serializable,Comparable<InstructionStatus.InstructionState>,Constable
- Enclosing interface:
- InstructionStatus
public static enum InstructionStatus.InstructionState
extends Enum<InstructionStatus.InstructionState>
An enumeration of instruction states.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe instruction was received and has been executed.The instruction was received but the recipient has declined to execute the instruction.The instruction has been received and is being executed by the recipient currently.The instruction has been queued on the sender for the recipient.The instruction is in the process of being queued, potentially jumping to the received state if an immediate acknowledgement is possible.The recipient has acknowledged receipt of the instruction, but has not been processed yet.The instruction state is not known. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static InstructionStatus.InstructionState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Unknown
The instruction state is not known. -
Queued
The instruction has been queued on the sender for the recipient. -
Queuing
The instruction is in the process of being queued, potentially jumping to the received state if an immediate acknowledgement is possible. -
Received
The recipient has acknowledged receipt of the instruction, but has not been processed yet. It will be processed at as soon as possible. -
Executing
The instruction has been received and is being executed by the recipient currently. -
Declined
The instruction was received but the recipient has declined to execute the instruction. -
Completed
The instruction was received and has been executed.
-
-
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
-