ArrayBlockingQueue 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
ArrayBlockingQueue(Int32) |
Creates an |
ArrayBlockingQueue(Int32, Boolean) |
Creates an |
ArrayBlockingQueue(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ArrayBlockingQueue(Int32, Boolean, ICollection) |
Creates an |
ArrayBlockingQueue(Int32)
Creates an ArrayBlockingQueue
with the given (fixed)
capacity and default access policy.
[Android.Runtime.Register(".ctor", "(I)V", "")]
public ArrayBlockingQueue (int capacity);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.Concurrent.ArrayBlockingQueue : int -> Java.Util.Concurrent.ArrayBlockingQueue
Parameters
- capacity
- Int32
the capacity of this queue
- Attributes
Exceptions
if capacity
Remarks
Creates an ArrayBlockingQueue
with the given (fixed) capacity and default access policy.
Java documentation for java.util.concurrent.ArrayBlockingQueue.ArrayBlockingQueue(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
ArrayBlockingQueue(Int32, Boolean)
Creates an ArrayBlockingQueue
with the given (fixed)
capacity and the specified access policy.
[Android.Runtime.Register(".ctor", "(IZ)V", "")]
public ArrayBlockingQueue (int capacity, bool fair);
[<Android.Runtime.Register(".ctor", "(IZ)V", "")>]
new Java.Util.Concurrent.ArrayBlockingQueue : int * bool -> Java.Util.Concurrent.ArrayBlockingQueue
Parameters
- capacity
- Int32
the capacity of this queue
- fair
- Boolean
if true
then queue accesses for threads blocked
on insertion or removal, are processed in FIFO order;
if false
the access order is unspecified.
- Attributes
Exceptions
if capacity
Remarks
Creates an ArrayBlockingQueue
with the given (fixed) capacity and the specified access policy.
Java documentation for java.util.concurrent.ArrayBlockingQueue.ArrayBlockingQueue(int, boolean)
.
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
ArrayBlockingQueue(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected ArrayBlockingQueue (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.ArrayBlockingQueue : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.ArrayBlockingQueue
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.
Applies to
ArrayBlockingQueue(Int32, Boolean, ICollection)
Creates an ArrayBlockingQueue
with the given (fixed)
capacity, the specified access policy and initially containing the
elements of the given collection,
added in traversal order of the collection's iterator.
[Android.Runtime.Register(".ctor", "(IZLjava/util/Collection;)V", "")]
public ArrayBlockingQueue (int capacity, bool fair, System.Collections.ICollection? c);
[<Android.Runtime.Register(".ctor", "(IZLjava/util/Collection;)V", "")>]
new Java.Util.Concurrent.ArrayBlockingQueue : int * bool * System.Collections.ICollection -> Java.Util.Concurrent.ArrayBlockingQueue
Parameters
- capacity
- Int32
the capacity of this queue
- fair
- Boolean
if true
then queue accesses for threads blocked
on insertion or removal, are processed in FIFO order;
if false
the access order is unspecified.
the collection of elements to initially contain
- Attributes
Remarks
Creates an ArrayBlockingQueue
with the given (fixed) capacity, the specified access policy and initially containing the elements of the given collection, added in traversal order of the collection's iterator.
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.