다음을 통해 공유


LinkedBlockingQueue Constructors

Definition

Overloads

LinkedBlockingQueue()

Creates a LinkedBlockingQueue with a capacity of Integer#MAX_VALUE.

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.

LinkedBlockingQueue(Int32)

Creates a LinkedBlockingQueue with the given (fixed) capacity.

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

c
ICollection

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.

Java documentation for java.util.concurrent.LinkedBlockingQueue.LinkedBlockingQueue(java.util.Collection<? extends E>).

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

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

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