Java.Util.Concurrent.Locks.ReentrantReadWriteLock.GetWaitQueueLength Method
Returns an estimate of the number of threads waiting on the given condition associated with the write lock.

Syntax

[Android.Runtime.Register("getWaitQueueLength", "(Ljava/util/concurrent/locks/Condition;)I", "GetGetWaitQueueLength_Ljava_util_concurrent_locks_Condition_Handler")]
public virtual int GetWaitQueueLength (ICondition condition)

Parameters

condition
the condition

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalMonitorStateExceptionif this lock is not held
Java.Lang.IllegalArgumentExceptionif the given condition is not associated with this lock
Java.Lang.NullPointerExceptionif the condition is null

Remarks

Returns an estimate of the number of threads waiting on the given condition associated with the write lock. Note that because timeouts and interrupts may occur at any time, the estimate serves only as an upper bound on the actual number of waiters. This method is designed for use in monitoring of the system state, not for synchronization control.

[Android Documentation]

Requirements

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