IBlockingDeque IBlockingDeque Interface

Definition

A IDeque that additionally supports blocking operations that wait for the deque to become non-empty when retrieving an element, and wait for space to become available in the deque when storing an element.

[Android.Runtime.Register("java/util/concurrent/BlockingDeque", "", "Java.Util.Concurrent.IBlockingDequeInvoker", ApiSince=9)]
[Java.Interop.JavaTypeParameters(new System.String[] { "E" })]
public interface IBlockingDeque : IDisposable, Java.Util.Concurrent.IBlockingQueue, Java.Util.IDeque
type IBlockingDeque = interface
    interface IBlockingQueue
    interface IQueue
    interface ICollection
    interface IIterable
    interface IJavaObject
    interface IDisposable
    interface IDeque
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.

Methods

Add(Object) Add(Object)
AddAll(ICollection) AddAll(ICollection) Inherited from ICollection
AddFirst(Object) AddFirst(Object)
AddLast(Object) AddLast(Object)
Clear() Clear()

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

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

Returns true if this deque contains the specified element.

ContainsAll(ICollection) ContainsAll(ICollection) Inherited from ICollection
DescendingIterator() DescendingIterator()

Returns an iterator over the elements in this deque in reverse sequential order.

(Inherited from IDeque)
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 the queue represented by this deque (in other words, the first element of this deque).

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 iterator over the elements in this deque in proper sequence.

Offer(Object) Offer(Object)
Offer(Object, Int64, TimeUnit) Offer(Object, Int64, TimeUnit)
OfferFirst(Object) OfferFirst(Object)
OfferFirst(Object, Int64, TimeUnit) OfferFirst(Object, Int64, TimeUnit)
OfferLast(Object) OfferLast(Object)
OfferLast(Object, Int64, TimeUnit) OfferLast(Object, Int64, TimeUnit)
Peek() Peek()

Retrieves, but does not remove, the head of the queue represented by this deque (in other words, the first element of this deque), or returns null if this deque is empty.

PeekFirst() PeekFirst()

Retrieves, but does not remove, the first element of this deque, or returns null if this deque is empty.

(Inherited from IDeque)
PeekLast() PeekLast()

Retrieves, but does not remove, the last element of this deque, or returns null if this deque is empty.

(Inherited from IDeque)
Poll() Poll()

Retrieves and removes the head of the queue represented by this deque (in other words, the first element of this deque), or returns null if this deque is empty.

Poll(Int64, TimeUnit) Poll(Int64, TimeUnit)
PollFirst() PollFirst()

Retrieves and removes the first element of this deque, or returns null if this deque is empty.

(Inherited from IDeque)
PollFirst(Int64, TimeUnit) PollFirst(Int64, TimeUnit)

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

PollLast() PollLast()

Retrieves and removes the last element of this deque, or returns null if this deque is empty.

(Inherited from IDeque)
PollLast(Int64, TimeUnit) PollLast(Int64, TimeUnit)

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

Pop() Pop()

Pops an element from the stack represented by this deque.

(Inherited from IDeque)
Push(Object) Push(Object)
Put(Object) Put(Object)
PutFirst(Object) PutFirst(Object)
PutLast(Object) PutLast(Object)
RemainingCapacity() RemainingCapacity() Inherited from IBlockingQueue
Remove() Remove()

Retrieves and removes the head of the queue represented by this deque (in other words, the first element of this deque).

Remove(Object) Remove(Object)

Removes the first occurrence of the specified element from this deque.

RemoveAll(ICollection) RemoveAll(ICollection) Inherited from ICollection
RemoveFirst() RemoveFirst()

Retrieves and removes the first element of this deque.

(Inherited from IDeque)
RemoveFirstOccurrence(Object) RemoveFirstOccurrence(Object)

Removes the first occurrence of the specified element from this deque.

RemoveLast() RemoveLast()

Retrieves and removes the last element of this deque.

(Inherited from IDeque)
RemoveLastOccurrence(Object) RemoveLastOccurrence(Object)

Removes the last occurrence of the specified element from this deque.

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

Returns the number of elements in this deque.

Take() Take()

Retrieves and removes the head of the queue represented by this deque (in other words, the first element of this deque), waiting if necessary until an element becomes available.

TakeFirst() TakeFirst()

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

TakeLast() TakeLast()

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

ToArray() ToArray()

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

(Inherited from ICollection)
ToArray(Object[]) ToArray(Object[]) Inherited from ICollection

Properties

First First

Retrieves, but does not remove, the first element of this deque.

(Inherited from IDeque)
Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsEmpty IsEmpty

Returns if this Collection contains no elements.

(Inherited from ICollection)
Last Last

Retrieves, but does not remove, the last element of this deque.

(Inherited from IDeque)

Extension Methods

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

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
OfferFirstAsync(IBlockingDeque, Object) OfferFirstAsync(IBlockingDeque, Object)
OfferFirstAsync(IBlockingDeque, Object, Int64, TimeUnit) OfferFirstAsync(IBlockingDeque, Object, Int64, TimeUnit)
OfferLastAsync(IBlockingDeque, Object) OfferLastAsync(IBlockingDeque, Object)
OfferLastAsync(IBlockingDeque, Object, Int64, TimeUnit) OfferLastAsync(IBlockingDeque, Object, Int64, TimeUnit)
PollFirstAsync(IBlockingDeque, Int64, TimeUnit) PollFirstAsync(IBlockingDeque, Int64, TimeUnit)
PollLastAsync(IBlockingDeque, Int64, TimeUnit) PollLastAsync(IBlockingDeque, Int64, TimeUnit)
PutFirstAsync(IBlockingDeque, Object) PutFirstAsync(IBlockingDeque, Object)
PutLastAsync(IBlockingDeque, Object) PutLastAsync(IBlockingDeque, Object)
TakeFirstAsync(IBlockingDeque) TakeFirstAsync(IBlockingDeque)
TakeLastAsync(IBlockingDeque) TakeLastAsync(IBlockingDeque)
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