Enum TaskExecutorService.ExecutorInfo.State
- java.lang.Object
-
- java.lang.Enum<TaskExecutorService.ExecutorInfo.State>
-
- com.oracle.coherence.concurrent.executor.TaskExecutorService.ExecutorInfo.State
-
- All Implemented Interfaces:
Serializable,Comparable<TaskExecutorService.ExecutorInfo.State>
- Enclosing interface:
- TaskExecutorService.ExecutorInfo
public static enum TaskExecutorService.ExecutorInfo.State extends Enum<TaskExecutorService.ExecutorInfo.State>
The state of anExecutorService.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSEDTheExecutorServicehas been closed and no longer has any allocatedTasks.CLOSINGTheExecutorServicehas commenced closing, including cleaning up resources and allocatedTasks.CLOSING_GRACEFULLYTheExecutorServicehas commenced graceful closing.JOININGTheExecutorServiceis the process of joining the orchestration, including introducing itself to the currentTasks for assignment.REJECTINGTheExecutorServiceis rejectingTasks.RUNNINGTheExecutorServiceis accepting and executingTasks.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Return an integer value for the enum to be used asMetricValue.static TaskExecutorService.ExecutorInfo.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static TaskExecutorService.ExecutorInfo.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JOINING
public static final TaskExecutorService.ExecutorInfo.State JOINING
TheExecutorServiceis the process of joining the orchestration, including introducing itself to the currentTasks for assignment.
-
RUNNING
public static final TaskExecutorService.ExecutorInfo.State RUNNING
TheExecutorServiceis accepting and executingTasks.
-
CLOSING_GRACEFULLY
public static final TaskExecutorService.ExecutorInfo.State CLOSING_GRACEFULLY
TheExecutorServicehas commenced graceful closing. No newTasks will be accepted, but existingTasks will run to completion.Once all assigned
Tasks are completed, theExecutorServicewill go toCLOSING.
-
CLOSING
public static final TaskExecutorService.ExecutorInfo.State CLOSING
TheExecutorServicehas commenced closing, including cleaning up resources and allocatedTasks.
-
CLOSED
public static final TaskExecutorService.ExecutorInfo.State CLOSED
TheExecutorServicehas been closed and no longer has any allocatedTasks.
-
REJECTING
public static final TaskExecutorService.ExecutorInfo.State REJECTING
TheExecutorServiceis rejectingTasks.
-
-
Method Detail
-
values
public static TaskExecutorService.ExecutorInfo.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 (TaskExecutorService.ExecutorInfo.State c : TaskExecutorService.ExecutorInfo.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 TaskExecutorService.ExecutorInfo.State 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
-
getCode
public int getCode()
Return an integer value for the enum to be used asMetricValue.- Returns:
- integer value for the enum
TaskExecutorService.ExecutorInfo.State - Since:
- 22.06
-
-