Phaser Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Phaser() |
Creates a new phaser with no initially registered parties, no parent, and initial phase number 0. |
Phaser(Phaser) |
Equivalent to |
Phaser(Int32) |
Creates a new phaser with the given number of registered unarrived parties, no parent, and initial phase number 0. |
Phaser(Phaser, Int32) |
Creates a new phaser with the given parent and number of registered unarrived parties. |
Phaser(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Phaser()
Creates a new phaser with no initially registered parties, no parent, and initial phase number 0.
[Android.Runtime.Register(".ctor", "()V", "")]
public Phaser ();
- Attributes
Remarks
Creates a new phaser with no initially registered parties, no parent, and initial phase number 0. Any thread using this phaser will need to first register for it.
Java documentation for java.util.concurrent.Phaser.Phaser()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Phaser(Phaser)
Equivalent to #Phaser(Phaser, int) Phaser(parent, 0)
.
[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Phaser;)V", "")]
public Phaser (Java.Util.Concurrent.Phaser? parent);
[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Phaser;)V", "")>]
new Java.Util.Concurrent.Phaser : Java.Util.Concurrent.Phaser -> Java.Util.Concurrent.Phaser
Parameters
- parent
- Phaser
the parent phaser
- Attributes
Remarks
Equivalent to #Phaser(Phaser, int) Phaser(parent, 0)
.
Java documentation for java.util.concurrent.Phaser.Phaser(java.util.concurrent.Phaser)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Phaser(Int32)
Creates a new phaser with the given number of registered unarrived parties, no parent, and initial phase number 0.
[Android.Runtime.Register(".ctor", "(I)V", "")]
public Phaser (int parties);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.Concurrent.Phaser : int -> Java.Util.Concurrent.Phaser
Parameters
- parties
- Int32
the number of parties required to advance to the next phase
- Attributes
Exceptions
if parties less than zero or greater than the maximum number of parties supported
Remarks
Creates a new phaser with the given number of registered unarrived parties, no parent, and initial phase number 0.
Java documentation for java.util.concurrent.Phaser.Phaser(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Phaser(Phaser, Int32)
Creates a new phaser with the given parent and number of registered unarrived parties.
[Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Phaser;I)V", "")]
public Phaser (Java.Util.Concurrent.Phaser? parent, int parties);
[<Android.Runtime.Register(".ctor", "(Ljava/util/concurrent/Phaser;I)V", "")>]
new Java.Util.Concurrent.Phaser : Java.Util.Concurrent.Phaser * int -> Java.Util.Concurrent.Phaser
Parameters
- parent
- Phaser
the parent phaser
- parties
- Int32
the number of parties required to advance to the next phase
- Attributes
Exceptions
if parties less than zero or greater than the maximum number of parties supported
Remarks
Creates a new phaser with the given parent and number of registered unarrived parties. When the given parent is non-null and the given number of parties is greater than zero, this child phaser is registered with its parent.
Java documentation for java.util.concurrent.Phaser.Phaser(java.util.concurrent.Phaser, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
Phaser(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected Phaser (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.Phaser : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.Phaser
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.