Represents an actor's thread pool
Modifiers | Name | Description |
---|---|---|
java.lang.String |
POOL_SIZE_MUST_BE_A_POSITIVE_NUMBER |
|
java.lang.String |
UNCAUGHT_EXCEPTION_OCCURRED_IN_GPARS_POOL |
Type | Name and description |
---|---|
void |
execute(java.lang.Runnable task) schedules a new task for processing with the pool |
int |
getPoolSize() Retrieves the current thread pool size |
void |
resetDefaultSize() Sets the pool size to the default |
void |
resize(int poolSize) Resizes the thread pool to the specified value |
void |
shutdown() Gently stops the pool |
schedules a new task for processing with the pool
task
- The task to scheduleRetrieves the current thread pool size
Sets the pool size to the default
Resizes the thread pool to the specified value
poolSize
- The new pool sizeGently stops the pool