FileDocCategorySizeDatePackage
ThreadPoolRunnable.javaAPI DocApache Tomcat 6.0.141565Fri Jul 20 04:20:32 BST 2007org.apache.tomcat.util.threads

ThreadPoolRunnable

public interface ThreadPoolRunnable
Implemented if you want to run a piece of code inside a thread pool.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.Object[]getInitData()
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.

public voidrunIt(java.lang.Object[] thData)
This method will be executed in one of the pool's threads. The thread will be returned to the pool.