类 ExecutorsHelper
java.lang.Object
org.coodex.concurrent.ExecutorsHelper
Created by davidoff shen on 2016-09-05.
-
方法概要
修饰符和类型方法说明static ExecutorServicenewCachedThreadPool(String namePrefix) static ExecutorServicenewCachedThreadPool(String namePrefix, int priority) static ExecutorServicenewCachedThreadPool(ThreadFactory threadFactory) static ExecutorServicenewFixedThreadPool(int nThreads, String namePrefix) static ExecutorServicenewFixedThreadPool(int nThreads, String namePrefix, int priority) static ExecutorServicenewFixedThreadPool(int nThreads, ThreadFactory threadFactory) static ExecutorServicenewLinkedThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix) static ExecutorServicenewLinkedThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix, int threadPriority) static ExecutorServicenewLinkedThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix) static ExecutorServicenewLinkedThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix, int threadPriority) static ExecutorServicenewPriorityThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix) static ExecutorServicenewPriorityThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix, int threadPriority) static ExecutorServicenewPriorityThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix) static ExecutorServicenewPriorityThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix, int threadPriority) static ScheduledExecutorServicenewScheduledThreadPool(int corePoolSize, String namePrefix) static ScheduledExecutorServicenewScheduledThreadPool(int corePoolSize, String namePrefix, int priority) static ScheduledExecutorServicenewScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory) static ExecutorServicenewSingleThreadExecutor(String namePrefix) static ExecutorServicenewSingleThreadExecutor(String namePrefix, int priority) static ExecutorServicenewSingleThreadExecutor(ThreadFactory threadFactory) static ScheduledExecutorServicenewSingleThreadScheduledExecutor(String namePrefix) static ScheduledExecutorServicenewSingleThreadScheduledExecutor(String namePrefix, int priority) static ScheduledExecutorServicenewSingleThreadScheduledExecutor(ThreadFactory threadFactory) static void
-
方法详细资料
-
newPriorityThreadPool
public static ExecutorService newPriorityThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix, int threadPriority) -
newPriorityThreadPool
public static ExecutorService newPriorityThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix) -
newPriorityThreadPool
public static ExecutorService newPriorityThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix) -
newPriorityThreadPool
public static ExecutorService newPriorityThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix, int threadPriority) -
newLinkedThreadPool
public static ExecutorService newLinkedThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix) -
newLinkedThreadPool
public static ExecutorService newLinkedThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix, int threadPriority) -
newLinkedThreadPool
public static ExecutorService newLinkedThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix) -
newLinkedThreadPool
public static ExecutorService newLinkedThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix, int threadPriority) -
newFixedThreadPool
-
newFixedThreadPool
-
newFixedThreadPool
-
newSingleThreadExecutor
-
newSingleThreadExecutor
-
newSingleThreadExecutor
-
newCachedThreadPool
-
newCachedThreadPool
-
newCachedThreadPool
-
newSingleThreadScheduledExecutor
-
newSingleThreadScheduledExecutor
public static ScheduledExecutorService newSingleThreadScheduledExecutor(String namePrefix, int priority) -
newSingleThreadScheduledExecutor
public static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory) -
newScheduledThreadPool
-
newScheduledThreadPool
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, String namePrefix, int priority) -
newScheduledThreadPool
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory) -
shutdownAll
public static void shutdownAll() -
shutdownAllNOW
-