Java.Util.Concurrent.LinkedBlockingDeque.Poll Method
Retrieves and removes the head of the queue represented by this deque (in other words, the first element of this deque), waiting up to the specified wait time if necessary for an element to become available.

Syntax

[Android.Runtime.Register("poll", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", "GetPoll_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual Java.Lang.Object Poll (long timeout, TimeUnit unit)

Parameters

timeout
how long to wait before giving up, in units of unit
unit
a TimeUnit determining how to interpret the timeout parameter

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.InterruptedException

Remarks

Retrieves and removes the head of the queue represented by this deque (in other words, the first element of this deque), waiting up to the specified wait time if necessary for an element to become available.

This method is equivalent to IBlockingDeque.PollFirst(long, Java.Util.Concurrent.TimeUnit).

[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 9