Method Summary |
|
public synchronized void | add(Listener listener) Adds a Listener to this ThreadQueue. |
public void | add(Runnable runnable) Adds a Runnables to the queue. |
public void | clear() Empties the queue of waiting Runnables. |
public void | dispose() Shuts down the ThreadQueue. |
protected void | fireAllRunningThreadsFinished() Informs Listeners of the fact that the number of running threads
went to zero. |
public int | getRunningThreads() The number of currently running worker threads. |
public synchronized void | remove(Listener listener) Removes a Listener from this ThreadQueue. |
public int | runningThreads() The number of currently running worker threads. |
public int | waitingRunnables() The number of currently waiting Runnables. |
public int | waitingThreads() The number of currently idle worker threads. |