Dela via


ScheduledThreadPoolExecutor.RemoveOnCancelPolicy Property

Definition

Gets the policy on whether cancelled tasks should be immediately removed from the work queue at time of cancellation. -or- Sets the policy on whether cancelled tasks should be immediately removed from the work queue at time of cancellation.

public virtual bool RemoveOnCancelPolicy { [Android.Runtime.Register("getRemoveOnCancelPolicy", "()Z", "GetGetRemoveOnCancelPolicyHandler")] get; [Android.Runtime.Register("setRemoveOnCancelPolicy", "(Z)V", "GetSetRemoveOnCancelPolicy_ZHandler")] set; }
[<get: Android.Runtime.Register("getRemoveOnCancelPolicy", "()Z", "GetGetRemoveOnCancelPolicyHandler")>]
[<set: Android.Runtime.Register("setRemoveOnCancelPolicy", "(Z)V", "GetSetRemoveOnCancelPolicy_ZHandler")>]
member this.RemoveOnCancelPolicy : bool with get, set

Property Value

true if cancelled tasks are immediately removed from the queue

Attributes

Remarks

Property getter documentation:

Gets the policy on whether cancelled tasks should be immediately removed from the work queue at time of cancellation. This value is by default false.

Added in 1.7.

Java documentation for java.util.concurrent.ScheduledThreadPoolExecutor.getRemoveOnCancelPolicy().

Property setter documentation:

Sets the policy on whether cancelled tasks should be immediately removed from the work queue at time of cancellation. This value is by default false.

Added in 1.7.

Java documentation for java.util.concurrent.ScheduledThreadPoolExecutor.setRemoveOnCancelPolicy(boolean).

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

See also