Udostępnij za pośrednictwem


ThreadPoolExecutor.MaximumPoolSize Property

Definition

Returns the maximum allowed number of threads. -or- Sets the maximum allowed number of threads.

public virtual int MaximumPoolSize { [Android.Runtime.Register("getMaximumPoolSize", "()I", "GetGetMaximumPoolSizeHandler")] get; [Android.Runtime.Register("setMaximumPoolSize", "(I)V", "GetSetMaximumPoolSize_IHandler")] set; }
[<get: Android.Runtime.Register("getMaximumPoolSize", "()I", "GetGetMaximumPoolSizeHandler")>]
[<set: Android.Runtime.Register("setMaximumPoolSize", "(I)V", "GetSetMaximumPoolSize_IHandler")>]
member this.MaximumPoolSize : int with get, set

Property Value

the maximum allowed number of threads

Attributes

Exceptions

if the new maximum is less than or equal to zero, or less than the CorePoolSize

Remarks

Property getter documentation:

Returns the maximum allowed number of threads.

Java documentation for java.util.concurrent.ThreadPoolExecutor.getMaximumPoolSize().

Property setter documentation:

Sets the maximum allowed number of threads. This overrides any value set in the constructor. If the new value is smaller than the current value, excess existing threads will be terminated when they next become idle.

Java documentation for java.util.concurrent.ThreadPoolExecutor.setMaximumPoolSize(int).

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