Język

ITransferQueue.WaitingConsumerCount Property

Definition

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

public int WaitingConsumerCount { [Android.Runtime.Register("getWaitingConsumerCount", "()I", "GetGetWaitingConsumerCountHandler:Java.Util.Concurrent.ITransferQueueInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; }
[<get: Android.Runtime.Register("getWaitingConsumerCount", "()I", "GetGetWaitingConsumerCountHandler:Java.Util.Concurrent.ITransferQueueInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.WaitingConsumerCount : int

Property Value

the number of consumers waiting to receive elements

Attributes

Remarks

Returns an estimate of the number of consumers waiting to receive elements via BlockingQueue.take() or timed poll. The return value is an approximation of a momentary state of affairs, that may be inaccurate if consumers have completed or given up waiting. The value may be useful for monitoring and heuristics, but not for synchronization control. Implementations of this method are likely to be noticeably slower than those for hasWaitingConsumer().

Java reference for java.util.concurrent.TransferQueue.getWaitingConsumerCount.

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.

Applies to