net.wimpi.modbus.util
Class ThreadPool
java.lang.Object
net.wimpi.modbus.util.ThreadPool
public class ThreadPool
- extends Object
Class implementing a simple thread pool.
- Version:
- @version@ (@date@)
- Author:
- Dieter Wimberger
Constructor Summary |
ThreadPool(int size)
Constructs a new ThreadPool instance. |
Method Summary |
void |
execute(Runnable task)
Execute the Runnable instance
through a thread in this ThreadPool. |
ThreadPool
public ThreadPool(int size)
- Constructs a new ThreadPool instance.
- Parameters:
size
- the size of the thread pool.
execute
public void execute(Runnable task)
- Execute the Runnable instance
through a thread in this ThreadPool.
- Parameters:
task
- the Runnable to be executed.
Copyright © 2010. All Rights Reserved.