Java.Util.Concurrent.Phaser: Method Members

The methods of Java.Util.Concurrent.Phaser are listed below. For a list of all members, see the Phaser Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

Arrive() : int
Arrives at this phaser, without waiting for others to arrive.
ArriveAndAwaitAdvance() : int
Arrives at this phaser and awaits others.
ArriveAndDeregister() : int
Arrives at this phaser and deregisters from it without waiting for others to arrive.
AwaitAdvance(int) : int
Awaits the phase of this phaser to advance from the given phase value, returning immediately if the current phase is not equal to the given phase value or this phaser is terminated.
AwaitAdvanceInterruptibly(int) : int
Awaits the phase of this phaser to advance from the given phase value, throwing InterruptedException if interrupted while waiting, or returning immediately if the current phase is not equal to the given phase value or this phaser is terminated.
AwaitAdvanceInterruptibly(int, long, TimeUnit) : int
Awaits the phase of this phaser to advance from the given phase value or the given timeout to elapse, throwing InterruptedException if interrupted while waiting, or returning immediately if the current phase is not equal to the given phase value or this phaser is terminated.
BulkRegister(int) : int
Adds the given number of new unarrived parties to this phaser.
ForceTermination()
Forces this phaser to enter termination state.
Register() : int
Adds a new unarrived party to this phaser.

Protected Methods

OnAdvance(int, int) : bool
Overridable method to perform an action upon impending phase advance, and to control termination.