Enum Class Joiner.Status
- All Implemented Interfaces:
Serializable
,Comparable<Joiner.Status>
,Constable
- Enclosing class:
Joiner
status values returned from child add method
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionan ADDED status is returned when a child successfully adds itself to the join list but without reaching the expected number of childrena 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 childrena DUPLICATE status is returned when a child fails to add itself to the join list because it is already presentan EXCESS status is returned when a child fails to add itself to a join list because it already contains the expected number of childrena 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic Joiner.Status
Returns the enum constant of this class with the specified name.static Joiner.Status[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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 -
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
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
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
-
-
Constructor Details
-
Status
private Status()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-