Megosztás a következőn keresztül:


ThreadPoolExecutor.CorePoolSize Property

Definition

Returns the core number of threads. -or- Sets the core number of threads.

public virtual int CorePoolSize { [Android.Runtime.Register("getCorePoolSize", "()I", "GetGetCorePoolSizeHandler")] get; [Android.Runtime.Register("setCorePoolSize", "(I)V", "GetSetCorePoolSize_IHandler")] set; }
[<get: Android.Runtime.Register("getCorePoolSize", "()I", "GetGetCorePoolSizeHandler")>]
[<set: Android.Runtime.Register("setCorePoolSize", "(I)V", "GetSetCorePoolSize_IHandler")>]
member this.CorePoolSize : int with get, set

Property Value

the core number of threads

Attributes

Exceptions

if corePoolSize

Remarks

Property getter documentation:

Returns the core number of threads.

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

Property setter documentation:

Sets the core 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. If larger, new threads will, if needed, be started to execute any queued tasks.

Java documentation for java.util.concurrent.ThreadPoolExecutor.setCorePoolSize(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