org.ogf.saga.task
Enum WaitMode

java.lang.Object
  extended by java.lang.Enum<WaitMode>
      extended by org.ogf.saga.task.WaitMode
All Implemented Interfaces:
Serializable, Comparable<WaitMode>

public enum WaitMode
extends Enum<WaitMode>

When waiting for tasks in a task container, the user can either wait for all tasks in the container, or for any task in the container.


Enum Constant Summary
ALL
          Wait for all tasks in the container.
ANY
          Wait for any task in the container.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALL

public static final WaitMode ALL
Wait for all tasks in the container. Task.waitFor() only returns when all tasks in the container have reached a final state.


ANY

public static final WaitMode ANY
Wait for any task in the container. Task.waitFor() when one or more tasks in the container have reached a final state.

Method Detail

values

public static WaitMode[] 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 (WaitMode c : WaitMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static WaitMode 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 name
NullPointerException - if the argument is null

getValue

public int getValue()
Returns the integer value of this enumeration literal.

Returns:
the value.


Copyright © 2014 Open Grid Forum. All rights reserved.