public class Execs extends Object
Constructor and Description |
---|
Execs() |
Modifier and Type | Method and Description |
---|---|
static ThreadFactory |
makeThreadFactory(String nameFormat) |
static ExecutorService |
multiThreaded(int threads,
String nameFormat) |
static ExecutorService |
newBlockingSingleThreaded(String nameFormat,
int capacity) |
static ScheduledExecutorService |
scheduledSingleThreaded(String nameFormat) |
static ExecutorService |
singleThreaded(String nameFormat) |
public static ExecutorService singleThreaded(String nameFormat)
public static ExecutorService multiThreaded(int threads, String nameFormat)
public static ScheduledExecutorService scheduledSingleThreaded(String nameFormat)
public static ThreadFactory makeThreadFactory(String nameFormat)
public static ExecutorService newBlockingSingleThreaded(String nameFormat, int capacity)
nameFormat
- nameformat for threadFactorycapacity
- maximum capacity after which the executorService will block on accepting new tasksCopyright © 2011–2015. All rights reserved.