|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lobobrowser.util.SimpleThreadPool
public class SimpleThreadPool
A thread pool that allows cancelling all running tasks without shutting down the thread pool.
Constructor Summary | |
---|---|
SimpleThreadPool(java.lang.String name,
int minShrinkToThreads,
int maxThreads,
int idleAliveMillis)
|
Method Summary | |
---|---|
void |
cancel(SimpleThreadPoolTask task)
|
void |
cancelAll()
Cancels all waiting tasks and any currently running task. |
void |
schedule(SimpleThreadPoolTask task)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleThreadPool(java.lang.String name, int minShrinkToThreads, int maxThreads, int idleAliveMillis)
Method Detail |
---|
public void schedule(SimpleThreadPoolTask task)
public void cancel(SimpleThreadPoolTask task)
public void cancelAll()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |