org.lobobrowser.util
Class SimpleThreadPool
java.lang.Object
org.lobobrowser.util.SimpleThreadPool
public class SimpleThreadPool
extends java.lang.Object
A thread pool that allows cancelling all running tasks without
shutting down the thread pool.
SimpleThreadPool(String name, int minShrinkToThreads, int maxThreads, int idleAliveMillis)
|
SimpleThreadPool
public SimpleThreadPool(String name,
int minShrinkToThreads,
int maxThreads,
int idleAliveMillis)
cancelAll
public void cancelAll()
Cancels all waiting tasks and any currently running task.