public class Executors extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
KEEP_ALIVE_TIME |
static TimeUnit |
KEEP_ALIVE_TIME_UNIT |
| 构造器和说明 |
|---|
Executors() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ThreadPoolExecutor |
create(int core,
BlockingQueue<Runnable> blockingQueue,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(int core,
BlockingQueue<Runnable> blockingQueue,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(int core,
int max,
BlockingQueue<Runnable> blockingQueue,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(int core,
int max,
BlockingQueue<Runnable> blockingQueue,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(int core,
int max,
String threadNamePrefix) |
static ThreadPoolExecutor |
create(int core,
int max,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(int core,
int max,
ThreadFactory threadFactory) |
static ThreadPoolExecutor |
create(int core,
String threadNamePrefix) |
static ThreadPoolExecutor |
create(int core,
String threadNamePrefix,
boolean isDaemon) |
static ThreadPoolExecutor |
create(int core,
ThreadFactory threadFactory) |
static RejectedExecutionHandler |
getDefaultRejectedPolicy() |
static void |
setDefaultRejectedPolicy(RejectedExecutionHandler defaultRejectedPolicy) |
static void |
shutdown(ExecutorService pool) |
public static final int KEEP_ALIVE_TIME
public static final TimeUnit KEEP_ALIVE_TIME_UNIT
public static void setDefaultRejectedPolicy(RejectedExecutionHandler defaultRejectedPolicy)
public static RejectedExecutionHandler getDefaultRejectedPolicy()
public static ThreadPoolExecutor create(int core, String threadNamePrefix)
public static ThreadPoolExecutor create(int core, int max, String threadNamePrefix)
public static ThreadPoolExecutor create(int core, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(int core, int max, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(int core, BlockingQueue<Runnable> blockingQueue, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(int core, int max, BlockingQueue<Runnable> blockingQueue, String threadNamePrefix, boolean isDaemon)
public static ThreadPoolExecutor create(int core, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(int core, int max, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(int core, BlockingQueue<Runnable> blockingQueue, ThreadFactory threadFactory)
public static ThreadPoolExecutor create(int core, int max, BlockingQueue<Runnable> blockingQueue, ThreadFactory threadFactory)
public static void shutdown(ExecutorService pool)
Copyright © 2024 fossc. All rights reserved.