Package net.toddm.comm
Enum Work.Status
- java.lang.Object
-
- java.lang.Enum<Work.Status>
-
- net.toddm.comm.Work.Status
-
- All Implemented Interfaces:
Serializable,Comparable<Work.Status>
- Enclosing interface:
- Work
public static enum Work.Status extends Enum<Work.Status>
An set of possible states that work can be in
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELLEDTheWorkinstance has been cancelledCOMPLETEDTheWorkinstance has finished without being cancelledCREATEDTheWorkinstance has been created, but has not started processing yetREDIRECTINGThere is a pending redirect attempt for theWorkinstanceRETRYINGThere is a pending retry attempt for theWorkinstanceRUNNINGTheWorkinstance is actively being processedWAITINGTheWorkinstance is waiting in the pending work queue
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Work.StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static Work.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATED
public static final Work.Status CREATED
TheWorkinstance has been created, but has not started processing yet
-
WAITING
public static final Work.Status WAITING
TheWorkinstance is waiting in the pending work queue
-
RUNNING
public static final Work.Status RUNNING
TheWorkinstance is actively being processed
-
RETRYING
public static final Work.Status RETRYING
There is a pending retry attempt for theWorkinstance
-
REDIRECTING
public static final Work.Status REDIRECTING
There is a pending redirect attempt for theWorkinstance
-
CANCELLED
public static final Work.Status CANCELLED
TheWorkinstance has been cancelled
-
COMPLETED
public static final Work.Status COMPLETED
TheWorkinstance has finished without being cancelled
-
-
Method Detail
-
values
public static Work.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Work.Status c : Work.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Work.Status valueOf(String name)
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
-
-