public class NullWorkExecutorPool extends Object implements WorkExecutorPool
| Constructor and Description |
|---|
NullWorkExecutorPool(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable command) |
int |
getMaximumPoolSize()
Gets the maximum number of threads to simultaneously execute.
|
int |
getPoolSize()
Gets the current number of active threads in the pool.
|
void |
setMaximumPoolSize(int maxSize)
Sets the maximum number of threads to simultaneously execute.
|
WorkExecutorPool |
start() |
WorkExecutorPool |
stop() |
public int getPoolSize()
WorkExecutorPoolgetPoolSize in interface WorkExecutorPoolpublic int getMaximumPoolSize()
WorkExecutorPoolgetMaximumPoolSize in interface WorkExecutorPoolpublic void setMaximumPoolSize(int maxSize)
WorkExecutorPoolsetMaximumPoolSize in interface WorkExecutorPoolmaxSize - Maximum size.public WorkExecutorPool start()
start in interface WorkExecutorPoolpublic WorkExecutorPool stop()
stop in interface WorkExecutorPoolCopyright © 2023. All rights reserved.