org.lobobrowser.util
public class SimpleThreadPool extends java.lang.Object
Constructor and Description |
---|
SimpleThreadPool(java.lang.String name,
int minShrinkToThreads,
int maxThreads,
int idleAliveMillis) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(SimpleThreadPoolTask task) |
void |
cancelAll()
Cancels all waiting tasks and any currently running task.
|
void |
schedule(SimpleThreadPoolTask task) |
public SimpleThreadPool(java.lang.String name, int minShrinkToThreads, int maxThreads, int idleAliveMillis)
public void schedule(SimpleThreadPoolTask task)
public void cancel(SimpleThreadPoolTask task)
public void cancelAll()