org.jboss.byteman.synchronization
Enum Joiner.Status

java.lang.Object
  extended by java.lang.Enum<Joiner.Status>
      extended by org.jboss.byteman.synchronization.Joiner.Status
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Joiner.Status>
Enclosing class:
Joiner

public static enum Joiner.Status
extends java.lang.Enum<Joiner.Status>

status values returned from child add method


Enum Constant Summary
ADDED
          an ADDED status is returned when a child successfully adds itself to the join list but without reaching the expected number of children
DONE
          a DONE status is returned when a child successfully adds itself to the join list reaching the expected number of children and there is a parent thread waiting for the children
DUPLICATE
          a DUPLICATE status is returned when a child fails to add itself to the join list because it is already present
EXCESS
          an EXCESS status is returned when a child fails to add itself to a join list because it already contains the expected number of children
FILLED
          a FILLED status is returned when a child successfully adds itself to the join list reaching the expected number of children but there is no parent thread waiting for the children
 
Method Summary
static Joiner.Status valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Joiner.Status[] 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

DUPLICATE

public static final Joiner.Status DUPLICATE
a DUPLICATE status is returned when a child fails to add itself to the join list because it is already present


EXCESS

public static final Joiner.Status EXCESS
an EXCESS status is returned when a child fails to add itself to a join list because it already contains the expected number of children


ADDED

public static final Joiner.Status ADDED
an ADDED status is returned when a child successfully adds itself to the join list but without reaching the expected number of children


FILLED

public static final Joiner.Status FILLED
a FILLED status is returned when a child successfully adds itself to the join list reaching the expected number of children but there is no parent thread waiting for the children


DONE

public static final Joiner.Status DONE
a DONE status is returned when a child successfully adds itself to the join list reaching the expected number of children and there is a parent thread waiting for the children

Method Detail

values

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

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

valueOf

public static Joiner.Status valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null