Package net.anwiba.commons.thread.queue
Enum WorkQueue.QueueState
- java.lang.Object
-
- java.lang.Enum<WorkQueue.QueueState>
-
- net.anwiba.commons.thread.queue.WorkQueue.QueueState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WorkQueue.QueueState>
- Enclosing class:
- WorkQueue
public static enum WorkQueue.QueueState extends java.lang.Enum<WorkQueue.QueueState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTIVESHUTDOWNTERMINATEDTERMINATING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WorkQueue.QueueStateget(java.util.concurrent.ThreadPoolExecutor executor)static WorkQueue.QueueStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WorkQueue.QueueState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTIVE
public static final WorkQueue.QueueState ACTIVE
-
SHUTDOWN
public static final WorkQueue.QueueState SHUTDOWN
-
TERMINATING
public static final WorkQueue.QueueState TERMINATING
-
TERMINATED
public static final WorkQueue.QueueState TERMINATED
-
-
Method Detail
-
values
public static WorkQueue.QueueState[] 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 (WorkQueue.QueueState c : WorkQueue.QueueState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorkQueue.QueueState 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 namejava.lang.NullPointerException- if the argument is null
-
get
public static WorkQueue.QueueState get(java.util.concurrent.ThreadPoolExecutor executor)
-
-