Save This Page
Home » apache-tomcat-6.0.26-src » org.apache » tomcat » util » threads » [javadoc | source]
org.apache.tomcat.util.threads
public interface: ThreadPoolRunnable [javadoc | source]

All Known Implementing Classes:
    LeaderFollowerWorkerThread, Expirer, SocketConnection, SocketConnection, AprAcceptor, Poller, AprConnection, SocketAcceptor

Implemented if you want to run a piece of code inside a thread pool.
Method from org.apache.tomcat.util.threads.ThreadPoolRunnable Summary:
getInitData,   runIt
Method from org.apache.tomcat.util.threads.ThreadPoolRunnable Detail:
 public 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  void runIt(Object[] thData)
    This method will be executed in one of the pool's threads. The thread will be returned to the pool.