public class ExecutorsHelper extends Object
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 newLinkedThreadPool(int coreSize, int maxSize, int maxWait, String namePrefix)
public static ExecutorService newLinkedThreadPool(int coreSize, int maxSize, int maxWait, long keepAliveTime, String namePrefix)
public static ExecutorService newFixedThreadPool(int nThreads, String namePrefix)
public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory)
public static ExecutorService newSingleThreadExecutor(String namePrefix)
public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory)
public static ExecutorService newCachedThreadPool(String namePrefix)
public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
public static ScheduledExecutorService newSingleThreadScheduledExecutor(String namePrefix)
public static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, String namePrefix)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory)
public static void shutdownAll()
Copyright © 2020. All rights reserved.