Package com.iizix
Enum WorkerTask.State
- java.lang.Object
- java.lang.Enum<WorkerTask.State>
- com.iizix.WorkerTask.State
 
 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<WorkerTask.State>
 - Enclosing class:
- WorkerTask<TASK_ID,PARAM,RESULT>
 - public static enum WorkerTask.State extends java.lang.Enum<WorkerTask.State> Task states.
- Enum Constant Summary- Enum Constants - Enum Constant - Description - COMPLETEDTask completed without errors.- EXCEPTIONTask completed with an exception.- NOT_STARTEDNot yet started task, this is the initial state, if not executing or posted (queued).- POSTEDTask has been posted to a queue, but not yet started.- RUNNINGTask is running.
 - Method Summary- All Methods Static Methods Concrete Methods - Modifier and Type - Method - Description - static WorkerTask.State- valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.- static WorkerTask.State[]- values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- Enum Constant Detail- NOT_STARTED- public static final WorkerTask.State NOT_STARTED Not yet started task, this is the initial state, if not executing or posted (queued).
 - POSTED- public static final WorkerTask.State POSTED Task has been posted to a queue, but not yet started.
 - RUNNING- public static final WorkerTask.State RUNNING Task is running.
 - COMPLETED- public static final WorkerTask.State COMPLETED Task completed without errors.
 - EXCEPTION- public static final WorkerTask.State EXCEPTION Task completed with an exception.
 
 - Method Detail- values- public static WorkerTask.State[] 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 (WorkerTask.State c : WorkerTask.State.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - valueOf- public static WorkerTask.State valueOf(java.lang.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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null