net.wimpi.modbus.util
Class ThreadPool

java.lang.Object
  extended by 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadPool

public ThreadPool(int size)
Constructs a new ThreadPool instance.

Parameters:
size - the size of the thread pool.
Method Detail

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.