| org.apache.tomcat.util.threads.ThreadPoolRunnable
All known Subclasses: org.apache.tomcat.util.threads.Expirer,
ThreadPoolRunnable | public interface ThreadPoolRunnable (Code) | | Implemented if you want to run a piece of code inside a thread pool.
|
Method Summary | |
public Object[] | getInitData() Called when this object is first loaded in the thread pool. | public void | runIt(Object thData) This method will be executed in one of the pool's threads. |
getInitData | public Object[] getInitData()(Code) | | Called when this object is first loaded in the thread pool.
Important: all workers in a pool must be of the same type,
otherwise the mechanism becomes more complex.
|
runIt | public void runIt(Object thData)(Code) | | This method will be executed in one of the pool's threads. The
thread will be returned to the pool.
|
|
|