Java.Util.Concurrent.CyclicBarrier Members

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

See Also: Inherited members from Java.Lang.Object

Public Constructors

Creates a new CyclicBarrier that will trip when the given number of parties (threads) are waiting upon it, and does not perform a predefined action when the barrier is tripped.
Creates a new CyclicBarrier that will trip when the given number of parties (threads) are waiting upon it, and which will execute the given barrier action when the barrier is tripped, performed by the last thread entering the barrier.

Protected Constructors

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

Public Properties

[read-only]
IsBrokenbool. Queries if this barrier is in a broken state.
[read-only]
NumberWaitingint. Returns the number of parties currently waiting at the barrier.
[read-only]
Partiesint. Returns the number of parties required to trip this barrier.

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

Await() : int
Waits until all CyclicBarrier.Parties have invoked await on this barrier.
Await(long, TimeUnit) : int
Waits until all CyclicBarrier.Parties have invoked await on this barrier, or the specified waiting time elapses.
AwaitAsync() : System.Threading.Tasks.Task<int>
Documentation for this section has not yet been entered.
AwaitAsync(long, TimeUnit) : System.Threading.Tasks.Task<int>
Documentation for this section has not yet been entered.
Reset()
Resets the barrier to its initial state.