public class Joiner
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Joiner.Status
status values returned from child add method
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Thread> |
children |
private int |
max |
private java.lang.Thread |
parent |
Constructor and Description |
---|
Joiner(int max) |
Modifier and Type | Method and Description |
---|---|
Joiner.Status |
addChild(java.lang.Thread thread) |
int |
getMax() |
boolean |
joinChildren(java.lang.Thread thread) |
private java.util.List<java.lang.Thread> children
private int max
private java.lang.Thread parent
public int getMax()
public Joiner.Status addChild(java.lang.Thread thread)
public boolean joinChildren(java.lang.Thread thread)