public class ExecutorUtils extends Object
| Constructor and Description |
|---|
ExecutorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Executor |
getDirectExecutor() |
static ExecutorService |
newFixedThreadPool(int nThreads,
int maxQueue,
String name) |
static ExecutorService |
newFixedThreadPool(int nThreads,
String name)
Creates a fixed thread pool with named daemon threads that will expire after 60 seconds of
inactivity.
|
public static ExecutorService newFixedThreadPool(int nThreads, String name)
nThreads - name - public static ExecutorService newFixedThreadPool(int nThreads, int maxQueue, String name)
public static Executor getDirectExecutor()
Copyright © 2019. All rights reserved.