public class ThreadPool
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static ThreadPool |
get() |
static java.util.concurrent.ScheduledThreadPoolExecutor |
globleExecutor() |
static void |
run(java.lang.Runnable runnable) |
void |
shutDown()
关闭线程池,这将导致改线程池立即停止接受新的线程请求,但已经存在的任务仍然会执行,直到完成。
|
static <T> java.util.concurrent.Future<T> |
submit(java.util.concurrent.Callable<T> call) |
public static final ThreadPool get()
public static void run(java.lang.Runnable runnable)
public static <T> java.util.concurrent.Future<T> submit(java.util.concurrent.Callable<T> call)
public static final java.util.concurrent.ScheduledThreadPoolExecutor globleExecutor()
public void shutDown()