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()
WorkExecutorPool
getPoolSize
in interface WorkExecutorPool
public int getMaximumPoolSize()
WorkExecutorPool
getMaximumPoolSize
in interface WorkExecutorPool
public void setMaximumPoolSize(int maxSize)
WorkExecutorPool
setMaximumPoolSize
in interface WorkExecutorPool
maxSize
- Maximum size.public WorkExecutorPool start()
start
in interface WorkExecutorPool
public WorkExecutorPool stop()
stop
in interface WorkExecutorPool
Copyright © 2016. All rights reserved.