public class ExecutorUtils extends Object
| 构造器和说明 |
|---|
ExecutorUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
deletePoolMap(Integer hashCode) |
static int |
getDefaultThreads() |
static com.google.common.util.concurrent.ListeningExecutorService |
getListeningExecutorService(ExecutorService executorService) |
static com.google.common.util.concurrent.ListeningExecutorService |
getListeningExecutorService(int nThreads,
String name,
int maxPendingTasks) |
static com.google.common.util.concurrent.ListeningExecutorService |
getListeningExecutorService(int nThreads,
String name,
int maxPendingTasks,
boolean flag) |
static com.google.common.util.concurrent.ListeningExecutorService |
getListeningExecutorService(int nThreads,
ThreadFactory threadFactory,
int maxPendingTasks) |
static com.google.common.util.concurrent.ListeningExecutorService |
getListeningExecutorService(int nThreads,
ThreadFactory threadFactory,
int maxPendingTasks,
boolean flag) |
static com.google.common.util.concurrent.ListeningExecutorService |
getListeningExecutorService(String name,
int maxPendingTasks) |
static ThreadFactory |
getNamedThreadFactory(String name) |
static ThreadFactory |
getNamedThreadFactory(String name,
boolean isDaemon) |
static Map<Integer,ThreadPoolExecutor> |
getPoolMap() |
static PriorityThreadPoolExecutor |
getPriorityThreadPoolExecutor(int corePoolSize,
String name,
int maxPendingTasks) |
static ScheduledExecutorService |
getScheduledExecutorService(int corePoolSize,
ThreadFactory threadFactory) |
static ScheduledExecutorService |
getScheduledExecutorService(String name) |
static ScheduledExecutorService |
getScheduledExecutorService(String name,
int corePoolSize) |
public static ThreadFactory getNamedThreadFactory(String name)
public static ThreadFactory getNamedThreadFactory(String name, boolean isDaemon)
public static ScheduledExecutorService getScheduledExecutorService(String name)
public static ScheduledExecutorService getScheduledExecutorService(String name, int corePoolSize)
public static ScheduledExecutorService getScheduledExecutorService(int corePoolSize, ThreadFactory threadFactory)
public static com.google.common.util.concurrent.ListeningExecutorService getListeningExecutorService(String name, int maxPendingTasks)
public static com.google.common.util.concurrent.ListeningExecutorService getListeningExecutorService(int nThreads,
String name,
int maxPendingTasks)
public static com.google.common.util.concurrent.ListeningExecutorService getListeningExecutorService(int nThreads,
String name,
int maxPendingTasks,
boolean flag)
public static com.google.common.util.concurrent.ListeningExecutorService getListeningExecutorService(int nThreads,
ThreadFactory threadFactory,
int maxPendingTasks,
boolean flag)
public static com.google.common.util.concurrent.ListeningExecutorService getListeningExecutorService(int nThreads,
ThreadFactory threadFactory,
int maxPendingTasks)
public static com.google.common.util.concurrent.ListeningExecutorService getListeningExecutorService(ExecutorService executorService)
public static int getDefaultThreads()
public static PriorityThreadPoolExecutor getPriorityThreadPoolExecutor(int corePoolSize, String name, int maxPendingTasks)
public static void deletePoolMap(Integer hashCode)
public static Map<Integer,ThreadPoolExecutor> getPoolMap()
Copyright © 2022. All rights reserved.