public class DepthFirstThreadPoolExecutor extends Object implements TreeExecutorService
Constructor and Description |
---|
DepthFirstThreadPoolExecutor() |
DepthFirstThreadPoolExecutor(int threads) |
DepthFirstThreadPoolExecutor(int threads,
int queueSizePerTaskGroup) |
Modifier and Type | Method and Description |
---|---|
static DepthFirstThreadPoolExecutor |
getInstance() |
int |
getPoolSize() |
static boolean |
hasInstance() |
static void |
set_instance_cpus(int _instance_cpus) |
ThreadPoolPerformanceStats |
shutdown() |
void |
shutdownNow() |
void |
submitAndWaitForAll(Iterable<Runnable> tasks)
Submit a collection of tasks to the thread pool, and block until they complete.
|
void |
submitAndWaitForAll(Iterator<Runnable> tasks)
Submit a collection of tasks to the thread pool, and block until they complete.
|
public DepthFirstThreadPoolExecutor()
public DepthFirstThreadPoolExecutor(int threads)
public DepthFirstThreadPoolExecutor(int threads, int queueSizePerTaskGroup)
public static DepthFirstThreadPoolExecutor getInstance()
public static boolean hasInstance()
public static void set_instance_cpus(int _instance_cpus)
public int getPoolSize()
public void submitAndWaitForAll(Iterable<Runnable> tasks)
submitAndWaitForAll
in interface TreeExecutorService
tasks
- public ThreadPoolPerformanceStats shutdown()
shutdown
in interface TreeExecutorService
public void shutdownNow()
public void submitAndWaitForAll(Iterator<Runnable> tasks)
submitAndWaitForAll
in interface TreeExecutorService
tasks
- Copyright © 2006–2014 David Soergel. All rights reserved.