Java.Util.Concurrent.LinkedBlockingQueue Class
An optionally-bounded Java.Util.Concurrent.IBlockingQueue based on linked nodes.

See Also: LinkedBlockingQueue Members

Syntax

[Android.Runtime.Register("java/util/concurrent/LinkedBlockingQueue", DoNotGenerateAcw=true)]
public class LinkedBlockingQueue : Java.Util.AbstractQueue, Java.IO.ISerializable, IBlockingQueue, IDisposable

Remarks

An optionally-bounded Java.Util.Concurrent.IBlockingQueue based on linked nodes. This queue orders elements FIFO (first-in-first-out). The head of the queue is that element that has been on the queue the longest time. The tail of the queue is that element that has been on the queue the shortest time. New elements are inserted at the tail of the queue, and the queue retrieval operations obtain elements at the head of the queue. Linked queues typically have higher throughput than array-based queues but less predictable performance in most concurrent applications.

The optional capacity bound constructor argument serves as a way to prevent excessive queue expansion. The capacity, if unspecified, is equal to Java.Lang.Integer.MaxValue. Linked nodes are dynamically created upon each insertion unless this would bring the queue above capacity.

This class and its iterator implement all of the optional methods of the Android.Runtime.JavaCollection and Java.Util.IIterator interfaces.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1