Package org.teiid.core.util
Class ExecutorUtils
- java.lang.Object
-
- org.teiid.core.util.ExecutorUtils
-
public class ExecutorUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description ExecutorUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExecutorgetDirectExecutor()static ExecutorServicenewFixedThreadPool(int nThreads, int maxQueue, String name)static ExecutorServicenewFixedThreadPool(int nThreads, String name)Creates a fixed thread pool with named daemon threads that will expire after 60 seconds of inactivity.
-
-
-
Method Detail
-
newFixedThreadPool
public static ExecutorService newFixedThreadPool(int nThreads, String name)
Creates a fixed thread pool with named daemon threads that will expire after 60 seconds of inactivity.- Parameters:
nThreads-name-
-
newFixedThreadPool
public static ExecutorService newFixedThreadPool(int nThreads, int maxQueue, String name)
-
getDirectExecutor
public static Executor getDirectExecutor()
-
-