Package com.bc.ceres.core
Enum ProcessObserver.Mode
- java.lang.Object
-
- java.lang.Enum<ProcessObserver.Mode>
-
- com.bc.ceres.core.ProcessObserver.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<ProcessObserver.Mode>
- Enclosing class:
- ProcessObserver
public static enum ProcessObserver.Mode extends Enum<ProcessObserver.Mode>
The observation mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCKING
ProcessObserver.start()
blocks until the process ends.NON_BLOCKING
ProcessObserver.start()
returns immediately.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProcessObserver.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProcessObserver.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCKING
public static final ProcessObserver.Mode BLOCKING
ProcessObserver.start()
blocks until the process ends.
-
NON_BLOCKING
public static final ProcessObserver.Mode NON_BLOCKING
ProcessObserver.start()
returns immediately.
-
-
Method Detail
-
values
public static ProcessObserver.Mode[] 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 (ProcessObserver.Mode c : ProcessObserver.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessObserver.Mode 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
-
-