org.apache.jcs.utils.threads
Interface IThreadPoolRunnable


public interface IThreadPoolRunnable

Implemented if you want to run a piece of code inside a thread pool. * A thread pool that is trying to copy the apache process management. asmuts -- Pulled out of tomcat, since it seems to move around and hide. Trying to reduce the number of dependencies

Author:
Aaron Smuts

Method Summary
 java.lang.Object[] getInitData()
          Called when this object is first loaded in the thread pool.
 void runIt(java.lang.Object[] thData)
          This method will be executed in one of the pool's threads.
 

Method Detail

getInitData

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.

Returns:
The initData value

runIt

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