it.pixel.util.threads
Interface RunnableWithParams
- public interface RunnableWithParams
Instead of implementing java.lang.Runnable, a class designed to be
executed in a thread of the pool must implement this interface.
Method Summary |
void |
run(ThreadPool tp,
java.lang.Object params)
This method is called in the executing context of a thread in the pool
after another thread has called the execute() method of the ThreadPool
instance. |
run
public void run(ThreadPool tp,
java.lang.Object params)
- This method is called in the executing context of a thread in the pool
after another thread has called the execute() method of the ThreadPool
instance.
- Parameters:
tp
- The ThreadPool instance whose execute() method was calledparams
- The same parameters passed to execute()- See Also:
ThreadPool.execute(Object)