LinkedTransferQueue.Transfer(Object) Method

Definition

Transfers the element to a consumer, waiting if necessary to do so.

[Android.Runtime.Register("transfer", "(Ljava/lang/Object;)V", "GetTransfer_Ljava_lang_Object_Handler")]
public virtual void Transfer (Java.Lang.Object? e);
[<Android.Runtime.Register("transfer", "(Ljava/lang/Object;)V", "GetTransfer_Ljava_lang_Object_Handler")>]
abstract member Transfer : Java.Lang.Object -> unit
override this.Transfer : Java.Lang.Object -> unit

Parameters

e
Object

Implements

Attributes

Remarks

Transfers the element to a consumer, waiting if necessary to do so.

More precisely, transfers the specified element immediately if there exists a consumer already waiting to receive it (in #take or timed #poll(long,TimeUnit) poll), else inserts the specified element at the tail of this queue and waits until the element is received by a consumer.

Java documentation for java.util.concurrent.LinkedTransferQueue.transfer(E).

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