Package net.pricefx.domain
Enum Class CalculationStatus
- All Implemented Interfaces:
Serializable
,Comparable<CalculationStatus>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptiondraft state, nothing happeningError during computation.Waiting for the next background worker to pick it up for processing.The system is processing the computation.Computed.Scheduled for the execution e.g., computation is wrapped in the task and is handed to the system for the future execution in background process.Scheduled for a 2nd pass to calculate dirty items. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static boolean
boolean
canStart()
static CalculationStatus
Returns the enum constant of this class with the specified name.static CalculationStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DRAFT
draft state, nothing happening -
PENDING
Waiting for the next background worker to pick it up for processing. -
SCHEDULED
Scheduled for the execution e.g., computation is wrapped in the task and is handed to the system for the future execution in background process. -
PROCESSING
The system is processing the computation. -
SCHEDULED_DIRTY
Scheduled for a 2nd pass to calculate dirty items. -
ERROR
Error during computation. -
READY
Computed. -
CANCELLED
-
-
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
-
canStart
public boolean canStart() -
canCancel
public boolean canCancel() -
canCancel
-