Java.Util.Concurrent.Phaser Members

The members of Java.Util.Concurrent.Phaser are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Creates a new phaser with no initially registered parties, no parent, and initial phase number 0.
Equivalent to Phaser(Phaser, System.Int32).
Creates a new phaser with the given number of registered unarrived parties, no parent, and initial phase number 0.
Creates a new phaser with the given parent and number of registered unarrived parties.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
ArrivedPartiesint. Returns the number of registered parties that have arrived at the current phase of this phaser.
[read-only]
IsTerminatedbool. Returns true if this phaser has been terminated.
[read-only]
ParentPhaser. Returns the parent of this phaser, or null if none.
[read-only]
Phaseint. Returns the current phase number.
[read-only]
RegisteredPartiesint. Returns the number of parties registered at this phaser.
[read-only]
RootPhaser. Returns the root ancestor of this phaser, which is the same as this phaser if it has no parent.
[read-only]
UnarrivedPartiesint. Returns the number of registered parties that have not yet arrived at the current phase of this phaser.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

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.