Enum BlockingExecutorService.Operation
- java.lang.Object
-
- java.lang.Enum<BlockingExecutorService.Operation>
-
- com.pervasivecode.utils.concurrent.executors.BlockingExecutorService.Operation
-
- All Implemented Interfaces:
Serializable
,Comparable<BlockingExecutorService.Operation>
- Enclosing class:
- BlockingExecutorService
public static enum BlockingExecutorService.Operation extends Enum<BlockingExecutorService.Operation>
The kind of time-consuming activity that the BlockingExecutorService is engaged in, for use as a timer-type value in anMultistageStopwatch
that is measuring how much time is being spent in each activity.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK
GRACEFUL_SHUTDOWN
QUEUE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlockingExecutorService.Operation
valueOf(String name)
Returns the enum constant of this type with the specified name.static BlockingExecutorService.Operation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCK
public static final BlockingExecutorService.Operation BLOCK
-
QUEUE
public static final BlockingExecutorService.Operation QUEUE
-
GRACEFUL_SHUTDOWN
public static final BlockingExecutorService.Operation GRACEFUL_SHUTDOWN
-
-
Method Detail
-
values
public static BlockingExecutorService.Operation[] 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 (BlockingExecutorService.Operation c : BlockingExecutorService.Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlockingExecutorService.Operation 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
-
-