Method | Description | |
---|---|---|
get ( ) : |
Gets a worker from the pool. The worker is marked as busy and will only be reused if the pool runs out of idle workers. The worker will be automatically marked as idle once no references to the returned worker remain. | |
getIdleWorkerCount ( ) : integer | Gets the number of workers that are currently idle. | |
getMaxSize ( ) : integer | Gets the maximum number of workers the pool may spawn to handle concurrent tasks. | |
getMinSize ( ) : integer | Gets the minimum number of workers the pool may have idle. | |
getWorkerCount ( ) : integer | Gets the number of workers currently running in the pool. |
public get ( ) : |
||
return |
public getIdleWorkerCount ( ) : integer | ||
return | integer | The number of idle workers. |
public getMaxSize ( ) : integer | ||
return | integer | The maximum number of workers. |
public getMinSize ( ) : integer | ||
return | integer | The minimum number of workers. |
public getWorkerCount ( ) : integer | ||
return | integer | The number of workers. |