| |
|
| java.lang.Object org.jboss.web.ThreadPool
ThreadPool | public class ThreadPool (Code) | | A simple thread pool.
Rickard Öberg
version: $Revision: 57209 $ |
Inner Class :class Worker extends Thread | |
Constructor Summary | |
public | ThreadPool() Create a new pool. |
Method Summary | |
public synchronized void | disable() | public synchronized void | enable() | public synchronized void | run(Runnable work) Do some work. | public void | setMaximumSize(int size) Set the maximum number of idle threads cached in this pool. |
ThreadPool | public ThreadPool()(Code) | | Create a new pool.
|
disable | public synchronized void disable()(Code) | | |
enable | public synchronized void enable()(Code) | | |
run | public synchronized void run(Runnable work)(Code) | | Do some work.
This will either create a new thread to do the work, or
use an existing idle cached thread.
|
setMaximumSize | public void setMaximumSize(int size)(Code) | | Set the maximum number of idle threads cached in this pool.
|
|
|
|