|
jamod at SF | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.wimpi.modbus.util.ThreadPool
Class implementing a simple thread pool.
| Constructor Summary | |
ThreadPool(int size)
Constructs a new ThreadPool instance. |
|
| Method Summary | |
void |
execute(java.lang.Runnable task)
Execute the Runnable instance through a thread in this ThreadPool. |
protected void |
initPool()
Initializes the pool, populating it with n started threads. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ThreadPool(int size)
size - the size of the thread pool.| Method Detail |
public void execute(java.lang.Runnable task)
task - the Runnable to be executed.protected void initPool()
|
jamod at SF | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||