97 |
|
* <p><b>Monitoring.</b> While synchronization methods may be invoked |
98 |
|
* only by registered parties, the current state of a phaser may be |
99 |
|
* monitored by any caller. At any given moment there are {@link |
100 |
< |
* #getRegisteredParties}, where {@link #getArrivedParties} have |
101 |
< |
* arrived at the current phase ({@link #getPhase}). When the |
102 |
< |
* remaining {@link #getUnarrivedParties}) arrive, the phase |
103 |
< |
* advances. Method {@link #toString} returns snapshots of these state |
104 |
< |
* queries in a form convenient for informal monitoring. |
100 |
> |
* #getRegisteredParties} parties in total, of which {@link |
101 |
> |
* #getArrivedParties} have arrived at the current phase ({@link |
102 |
> |
* #getPhase}). When the remaining ({@link #getUnarrivedParties}) |
103 |
> |
* parties arrive, the phase advances; thus, this value is always |
104 |
> |
* greater than zero if there are any registered parties. The values |
105 |
> |
* returned by these methods may reflect transient states and so are |
106 |
> |
* not in general useful for synchronization control. Method {@link |
107 |
> |
* #toString} returns snapshots of these state queries in a form |
108 |
> |
* convenient for informal monitoring. |
109 |
|
* |
110 |
|
* <p><b>Sample usages:</b> |
111 |
|
* |