public final class ThreadPool
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
runAfterStart(java.lang.Runnable runnable) |
static void |
runBeforeStart(java.lang.Runnable runnable,
boolean runLast) |
static void |
scheduleThread(java.lang.String name,
java.lang.Runnable runnable,
int delay) |
static void |
scheduleThread(java.lang.String name,
java.lang.Runnable runnable,
int delay,
java.util.concurrent.TimeUnit timeUnit) |
static void |
shutdown() |
static void |
shutdownExecutor(java.lang.String name,
java.util.concurrent.ExecutorService executor,
int timeout) |
static void |
start(int timeMultiplier) |
public static void runBeforeStart(java.lang.Runnable runnable, boolean runLast)
public static void runAfterStart(java.lang.Runnable runnable)
public static void scheduleThread(java.lang.String name, java.lang.Runnable runnable, int delay)
public static void scheduleThread(java.lang.String name, java.lang.Runnable runnable, int delay, java.util.concurrent.TimeUnit timeUnit)
public static void start(int timeMultiplier)
public static void shutdown()
public static void shutdownExecutor(java.lang.String name, java.util.concurrent.ExecutorService executor, int timeout)