public enum WaitMode extends Enum<WaitMode>
Enum Constant and Description |
---|
ALL
Wait for all tasks in the container.
|
ANY
Wait for any task in the container.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the integer value of this enumeration literal.
|
static WaitMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WaitMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WaitMode ALL
Task.waitFor()
only returns
when all tasks in the container have reached a final state.public static final WaitMode ANY
Task.waitFor()
when one or more
tasks in the container have reached a final state.public static WaitMode[] values()
for (WaitMode c : WaitMode.values()) System.out.println(c);
public static WaitMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
Copyright © 2016 Open Grid Forum. All rights reserved.