Example usage for Java java.util.concurrent Phaser fields, constructors, methods, implement or subclass
The text is from its open source code.
Phaser() Creates a new phaser with no initially registered parties, no parent, and initial phase number 0. | |
Phaser(int parties) Creates a new phaser with the given number of registered unarrived parties, no parent, and initial phase number 0. | |
Phaser(Phaser parent) Equivalent to #Phaser(Phaser,int) Phaser(parent, 0) . |
int | arriveAndAwaitAdvance() Arrives at this phaser and awaits others. |
int | arriveAndDeregister() Arrives at this phaser and deregisters from it without waiting for others to arrive. |
int | bulkRegister(int parties) Adds the given number of new unarrived parties to this phaser. |
void | forceTermination() Forces this phaser to enter termination state. |
boolean | isTerminated() Returns true if this phaser has been terminated. |
int | register() Adds a new unarrived party to this phaser. |