Package org.lobobrowser.util
Class SimpleThreadPool
java.lang.Object
org.lobobrowser.util.SimpleThreadPool
A thread pool that allows cancelling all running tasks without
shutting down the thread pool.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleThreadPool
(String name, int minShrinkToThreads, int maxThreads, int idleAliveMillis) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel
(SimpleThreadPoolTask task) void
Cancels all waiting tasks and any currently running task.void
schedule
(SimpleThreadPoolTask task)
-
Constructor Details
-
SimpleThreadPool
-
-
Method Details
-
schedule
-
cancel
-
cancelAll
public void cancelAll()Cancels all waiting tasks and any currently running task.
-