public class ExecutorsHelper extends Object
| Constructor and Description |
|---|
ExecutorsHelper() |
public static ExecutorService newPriorityThreadPool(int coreSize, int maxSize)
public static ExecutorService newPriorityThreadPool(int coreSize, int maxSize, long keepAliveTime)
public static ExecutorService newLinkedThreadPool(int coreSize, int maxSize, long keepAliveTime)
public static ExecutorService newFixedThreadPool(int nThreads)
public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory)
public static ExecutorService newSingleThreadExecutor()
public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory)
public static ExecutorService newCachedThreadPool()
public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
public static ScheduledExecutorService newSingleThreadScheduledExecutor()
public static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize)
public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, ThreadFactory threadFactory)
public static final void shutdownAll()
Copyright © 2018. All rights reserved.