Enum ClusteredExecutorService.State
- java.lang.Object
-
- java.lang.Enum<ClusteredExecutorService.State>
-
- com.oracle.coherence.concurrent.executor.ClusteredExecutorService.State
-
- All Implemented Interfaces:
Serializable,Comparable<ClusteredExecutorService.State>
- Enclosing class:
- ClusteredExecutorService
protected static enum ClusteredExecutorService.State extends Enum<ClusteredExecutorService.State>
Enumeration representing possible state transitions of theClusteredExecutorService.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYANYis used for state transitions.READYThe executor service is ready to process tasks.STOPPING_GRACEFULLYThe executor service is shutting down gracefully.STOPPING_IMMEDIATELYThe executor service is stopping immediately.TERMINATEDThe executor service has terminated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClusteredExecutorService.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static ClusteredExecutorService.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final ClusteredExecutorService.State ANY
ANYis used for state transitions.
-
READY
public static final ClusteredExecutorService.State READY
The executor service is ready to process tasks.
-
STOPPING_GRACEFULLY
public static final ClusteredExecutorService.State STOPPING_GRACEFULLY
The executor service is shutting down gracefully.
-
STOPPING_IMMEDIATELY
public static final ClusteredExecutorService.State STOPPING_IMMEDIATELY
The executor service is stopping immediately.
-
TERMINATED
public static final ClusteredExecutorService.State TERMINATED
The executor service has terminated.
-
-
Method Detail
-
values
public static ClusteredExecutorService.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 (ClusteredExecutorService.State c : ClusteredExecutorService.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 ClusteredExecutorService.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
-
-