LinkedBlockingQueue 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
LinkedBlockingQueue() |
Creates a |
LinkedBlockingQueue(ICollection) |
Creates a |
LinkedBlockingQueue(Int32) |
Creates a |
LinkedBlockingQueue(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
LinkedBlockingQueue()
Creates a LinkedBlockingQueue
with a capacity of
Integer#MAX_VALUE
.
[Android.Runtime.Register(".ctor", "()V", "")]
public LinkedBlockingQueue ();
- Attributes
Remarks
Creates a LinkedBlockingQueue
with a capacity of Integer#MAX_VALUE
.
Java documentation for java.util.concurrent.LinkedBlockingQueue.LinkedBlockingQueue()
.
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
LinkedBlockingQueue(ICollection)
Creates a LinkedBlockingQueue
with a capacity of
Integer#MAX_VALUE
, initially containing the elements of the
given collection,
added in traversal order of the collection's iterator.
[Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "")]
public LinkedBlockingQueue (System.Collections.ICollection? c);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "")>]
new Java.Util.Concurrent.LinkedBlockingQueue : System.Collections.ICollection -> Java.Util.Concurrent.LinkedBlockingQueue
Parameters
the collection of elements to initially contain
- Attributes
Remarks
Creates a LinkedBlockingQueue
with a capacity of Integer#MAX_VALUE
, 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.
Applies to
LinkedBlockingQueue(Int32)
Creates a LinkedBlockingQueue
with the given (fixed) capacity.
[Android.Runtime.Register(".ctor", "(I)V", "")]
public LinkedBlockingQueue (int capacity);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Util.Concurrent.LinkedBlockingQueue : int -> Java.Util.Concurrent.LinkedBlockingQueue
Parameters
- capacity
- Int32
the capacity of this queue
- Attributes
Exceptions
if capacity
is not greater
than zero
Remarks
Creates a LinkedBlockingQueue
with the given (fixed) capacity.
Java documentation for java.util.concurrent.LinkedBlockingQueue.LinkedBlockingQueue(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
LinkedBlockingQueue(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected LinkedBlockingQueue (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.LinkedBlockingQueue : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.LinkedBlockingQueue
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.