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