public class ExecutorsHelper extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static ExecutorService |
newCachedThreadPool(String namePrefix) |
static ExecutorService |
newCachedThreadPool(String namePrefix,
int priority) |
static ExecutorService |
newCachedThreadPool(ThreadFactory threadFactory) |
static ExecutorService |
newFixedThreadPool(int nThreads,
String namePrefix) |
static ExecutorService |
newFixedThreadPool(int nThreads,
String namePrefix,
int priority) |
static ExecutorService |
newFixedThreadPool(int nThreads,
ThreadFactory threadFactory) |
static ExecutorService |
newLinkedThreadPool(int coreSize,
int maxSize,
int maxWait,
long keepAliveTime,
String namePrefix) |
static ExecutorService |
newLinkedThreadPool(int coreSize,
int maxSize,
int maxWait,
long keepAliveTime,
String namePrefix,
int threadPriority) |
static ExecutorService |
newLinkedThreadPool(int coreSize,
int maxSize,
int maxWait,
String namePrefix) |
static ExecutorService |
newLinkedThreadPool(int coreSize,
int maxSize,
int maxWait,
String namePrefix,
int threadPriority) |
static ExecutorService |
newPriorityThreadPool(int coreSize,
int maxSize,
int maxWait,
long keepAliveTime,
String namePrefix) |
static ExecutorService |
newPriorityThreadPool(int coreSize,
int maxSize,
int maxWait,
long keepAliveTime,
String namePrefix,
int threadPriority) |
static ExecutorService |
newPriorityThreadPool(int coreSize,
int maxSize,
int maxWait,
String namePrefix) |
static ExecutorService |
newPriorityThreadPool(int coreSize,
int maxSize,
int maxWait,
String namePrefix,
int threadPriority) |
static ScheduledExecutorService |
newScheduledThreadPool(int corePoolSize,
String namePrefix) |
static ScheduledExecutorService |
newScheduledThreadPool(int corePoolSize,
String namePrefix,
int priority) |
static ScheduledExecutorService |
newScheduledThreadPool(int corePoolSize,
ThreadFactory threadFactory) |
static ExecutorService |
newSingleThreadExecutor(String namePrefix) |
static ExecutorService |
newSingleThreadExecutor(String namePrefix,
int priority) |
static ExecutorService |
newSingleThreadExecutor(ThreadFactory threadFactory) |
static ScheduledExecutorService |
newSingleThreadScheduledExecutor(String namePrefix) |
static ScheduledExecutorService |
newSingleThreadScheduledExecutor(String namePrefix,
int priority) |
static ScheduledExecutorService |
newSingleThreadScheduledExecutor(ThreadFactory threadFactory) |
static void |
shutdownAll() |
static List<Runnable> |
shutdownAllNOW() |
public static ExecutorService newPriorityThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix, int threadPriority)
public static ExecutorService newPriorityThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix)
public static ExecutorService newPriorityThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix)
public static ExecutorService newPriorityThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix, int threadPriority)
public static ExecutorService newLinkedThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix)
public static ExecutorService newLinkedThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix, int threadPriority)
public static ExecutorService newLinkedThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix)
public static ExecutorService newLinkedThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix, int threadPriority)
public static ExecutorService newFixedThreadPool(int nThreads, String namePrefix)
public static ExecutorService newFixedThreadPool(int nThreads, String namePrefix, int priority)
public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory)
public static ExecutorService newSingleThreadExecutor(String namePrefix)
public static ExecutorService newSingleThreadExecutor(String namePrefix, int priority)
public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory)
public static ExecutorService newCachedThreadPool(String namePrefix)
public static ExecutorService newCachedThreadPool(String namePrefix, int priority)
public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
public static ScheduledExecutorService newSingleThreadScheduledExecutor(String namePrefix)
public static ScheduledExecutorService newSingleThreadScheduledExecutor(String namePrefix, int priority)
public static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, String namePrefix)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, String namePrefix, int priority)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory)
public static void shutdownAll()
Copyright © 2021. All rights reserved.