Language

DelayQueue.Offer Method

Definition

Overloads

Name Description
Offer(Object)

Inserts the specified element into this delay queue.

Offer(Object, Int64, TimeUnit)

Inserts the specified element into this delay queue.

Offer(Object)

Inserts the specified element into this delay queue.

[Android.Runtime.Register("offer", "(Ljava/lang/Object;)Z", "GetOffer_Ljava_lang_Object_Handler")]
public override bool Offer(Java.Lang.Object? e);
[<Android.Runtime.Register("offer", "(Ljava/lang/Object;)Z", "GetOffer_Ljava_lang_Object_Handler")>]
override this.Offer : Java.Lang.Object -> bool

Parameters

e
Object

the element to add

Returns

true

Implements

Attributes

Remarks

Java documentation for java.util.concurrent.DelayQueue.offer(java.util.concurrent.Delayed).

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

Offer(Object, Int64, TimeUnit)

Inserts the specified element into this delay queue.

[Android.Runtime.Register("offer", "(Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)Z", "GetOffer_Ljava_lang_Object_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual bool Offer(Java.Lang.Object? e, long timeout, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("offer", "(Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)Z", "GetOffer_Ljava_lang_Object_JLjava_util_concurrent_TimeUnit_Handler")>]
override this.Offer : Java.Lang.Object * int64 * Java.Util.Concurrent.TimeUnit -> bool

Parameters

e
Object

the element to add

timeout
Int64

An unused timeout; this unbounded queue delegates insertion to Offer(Object) without a capacity wait.

unit
TimeUnit

An unused time unit; this overload does not convert or inspect the timeout.

Returns

true

Implements

Attributes

Remarks

Java documentation for java.util.concurrent.DelayQueue.offer(java.util.concurrent.Delayed).

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