FileDocCategorySizeDatePackage
ThreadPoolRunnable.javaAPI DocGlassfish v2 API2790Fri May 04 22:33:18 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.