Enum SequentialExecutor.WorkerRunningState
- java.lang.Object
-
- java.lang.Enum<SequentialExecutor.WorkerRunningState>
-
- com.google.common.util.concurrent.SequentialExecutor.WorkerRunningState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SequentialExecutor.WorkerRunningState>
- Enclosing class:
- SequentialExecutor
static enum SequentialExecutor.WorkerRunningState extends java.lang.Enum<SequentialExecutor.WorkerRunningState>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
WorkerRunningState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SequentialExecutor.WorkerRunningState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SequentialExecutor.WorkerRunningState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IDLE
public static final SequentialExecutor.WorkerRunningState IDLE
Runnable is not running and not queued for execution
-
QUEUING
public static final SequentialExecutor.WorkerRunningState QUEUING
Runnable is not running, but is being queued for execution
-
QUEUED
public static final SequentialExecutor.WorkerRunningState QUEUED
runnable has been submitted but has not yet begun execution
-
RUNNING
public static final SequentialExecutor.WorkerRunningState RUNNING
-
-
Method Detail
-
values
public static SequentialExecutor.WorkerRunningState[] 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 (SequentialExecutor.WorkerRunningState c : SequentialExecutor.WorkerRunningState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SequentialExecutor.WorkerRunningState 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
-
-