Package org.wso2.carbon.ntask.core
Enum TaskManager.TaskState
- java.lang.Object
-
- java.lang.Enum<TaskManager.TaskState>
-
- org.wso2.carbon.ntask.core.TaskManager.TaskState
-
- All Implemented Interfaces:
Serializable
,Comparable<TaskManager.TaskState>
- Enclosing interface:
- TaskManager
public static enum TaskManager.TaskState extends Enum<TaskManager.TaskState>
Task states.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskManager.TaskState
valueOf(String name)
Returns the enum constant of this type with the specified name.static TaskManager.TaskState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final TaskManager.TaskState NORMAL
-
PAUSED
public static final TaskManager.TaskState PAUSED
-
ERROR
public static final TaskManager.TaskState ERROR
-
FINISHED
public static final TaskManager.TaskState FINISHED
-
NONE
public static final TaskManager.TaskState NONE
-
BLOCKED
public static final TaskManager.TaskState BLOCKED
-
UNKNOWN
public static final TaskManager.TaskState UNKNOWN
-
-
Method Detail
-
values
public static TaskManager.TaskState[] 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 (TaskManager.TaskState c : TaskManager.TaskState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskManager.TaskState 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
-
-