|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.util.ThreadPool
ThreadPool.java ThreadPool maintains a large set of threads, which can be dedicated to a certain task, and then recycled.
Constructor Summary | |
ThreadPool(int numThreads)
Creates a pool of numThreads size. |
Method Summary | |
void |
addJob(Runnable runnable)
Post a Runnable to the queue. |
void |
shutdown()
Turn off the pool. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreadPool(int numThreads)
Method Detail |
public void addJob(Runnable runnable)
public void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |