Enum Joiner.Status
- java.lang.Object
-
- java.lang.Enum<Joiner.Status>
-
- 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
Enum Constants Enum Constant Description ADDED
an ADDED status is returned when a child successfully adds itself to the join list but without reaching the expected number of childrenDONE
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 childrenDUPLICATE
a DUPLICATE status is returned when a child fails to add itself to the join list because it is already presentEXCESS
an EXCESS status is returned when a child fails to add itself to a join list because it already contains the expected number of childrenFILLED
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
-
Constructor Summary
Constructors Modifier Constructor Description private
Status()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-