ITransferQueue ITransferQueue Interface

Definition

A IBlockingQueue in which producers may wait for consumers to receive elements.

[Android.Runtime.Register("java/util/concurrent/TransferQueue", "", "Java.Util.Concurrent.ITransferQueueInvoker", ApiSince=21)]
[Java.Interop.JavaTypeParameters(new System.String[] { "E" })]
public interface ITransferQueue : IDisposable, Java.Util.Concurrent.IBlockingQueue
type ITransferQueue = interface
    interface IBlockingQueue
    interface IQueue
    interface ICollection
    interface IIterable
    interface IJavaObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

Android platform documentation

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.

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
HasWaitingConsumer HasWaitingConsumer

Returns true if there is at least one consumer waiting to receive an element via Take() or timed Poll(Int64, TimeUnit).

IsEmpty IsEmpty

Returns if this Collection contains no elements.

(Inherited from ICollection)
WaitingConsumerCount WaitingConsumerCount

Returns an estimate of the number of consumers waiting to receive elements via Take() or timed Poll(Int64, TimeUnit).

Methods

Add(Object) Add(Object) Inherited from IQueue
AddAll(ICollection) AddAll(ICollection) Inherited from ICollection
Clear() Clear()

Removes all elements from this Collection, leaving it empty (optional).

(Inherited from ICollection)
Contains(Object) Contains(Object)

Tests whether this Collection contains the specified object.

(Inherited from ICollection)
ContainsAll(ICollection) ContainsAll(ICollection) Inherited from ICollection
DrainTo(ICollection) DrainTo(ICollection) Inherited from IBlockingQueue
DrainTo(ICollection, Int32) DrainTo(ICollection, Int32) Inherited from IBlockingQueue
Element() Element()

Retrieves, but does not remove, the head of this queue.

(Inherited from IQueue)
Equals(Object) Equals(Object)

Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.

(Inherited from ICollection)
GetHashCode() GetHashCode()

Returns an integer hash code for the receiver.

(Inherited from ICollection)
Iterator() Iterator()

Returns an instance of IIterator that may be used to access the objects contained by this Collection.

(Inherited from ICollection)
Offer(Object) Offer(Object) Inherited from IQueue
Offer(Object, Int64, TimeUnit) Offer(Object, Int64, TimeUnit) Inherited from IBlockingQueue
Peek() Peek()

Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.

(Inherited from IQueue)
Poll() Poll()

Retrieves and removes the head of this queue, or returns null if this queue is empty.

(Inherited from IQueue)
Poll(Int64, TimeUnit) Poll(Int64, TimeUnit)

Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.

(Inherited from IBlockingQueue)
Put(Object) Put(Object) Inherited from IBlockingQueue
RemainingCapacity() RemainingCapacity() Inherited from IBlockingQueue
Remove() Remove()

Retrieves and removes the head of this queue.

(Inherited from IQueue)
Remove(Object) Remove(Object)

Removes one instance of the specified object from this Collection if one is contained (optional).

(Inherited from ICollection)
RemoveAll(ICollection) RemoveAll(ICollection) Inherited from ICollection
RetainAll(ICollection) RetainAll(ICollection) Inherited from ICollection
Size() Size()

Returns a count of how many objects this Collection contains.

(Inherited from ICollection)
Take() Take()

Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.

(Inherited from IBlockingQueue)
ToArray() ToArray()

Returns a new array containing all elements contained in this Collection.

(Inherited from ICollection)
ToArray(Object[]) ToArray(Object[]) Inherited from ICollection
Transfer(Object) Transfer(Object)
TryTransfer(Object) TryTransfer(Object)
TryTransfer(Object, Int64, TimeUnit) TryTransfer(Object, Int64, TimeUnit)

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
OfferAsync(IBlockingQueue, Object) OfferAsync(IBlockingQueue, Object)
OfferAsync(IBlockingQueue, Object, Int64, TimeUnit) OfferAsync(IBlockingQueue, Object, Int64, TimeUnit)
PollAsync(IBlockingQueue, Int64, TimeUnit) PollAsync(IBlockingQueue, Int64, TimeUnit)
PutAsync(IBlockingQueue, Object) PutAsync(IBlockingQueue, Object)
TakeAsync(IBlockingQueue) TakeAsync(IBlockingQueue)
ToEnumerable(IIterable) ToEnumerable(IIterable)
ToEnumerable<T>(IIterable) ToEnumerable<T>(IIterable)

Applies to