类 ExecutorsHelper

java.lang.Object
org.coodex.concurrent.ExecutorsHelper

public class ExecutorsHelper extends Object
Created by davidoff shen on 2016-09-05.
  • 方法详细资料

    • 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

      public static ExecutorService newFixedThreadPool(int nThreads, String namePrefix)
    • newFixedThreadPool

      public static ExecutorService newFixedThreadPool(int nThreads, String namePrefix, int priority)
    • newFixedThreadPool

      public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory)
    • newSingleThreadExecutor

      public static ExecutorService newSingleThreadExecutor(String namePrefix)
    • newSingleThreadExecutor

      public static ExecutorService newSingleThreadExecutor(String namePrefix, int priority)
    • newSingleThreadExecutor

      public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory)
    • newCachedThreadPool

      public static ExecutorService newCachedThreadPool(String namePrefix)
    • newCachedThreadPool

      public static ExecutorService newCachedThreadPool(String namePrefix, int priority)
    • newCachedThreadPool

      public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory)
    • newSingleThreadScheduledExecutor

      public static ScheduledExecutorService newSingleThreadScheduledExecutor(String namePrefix)
    • newSingleThreadScheduledExecutor

      public static ScheduledExecutorService newSingleThreadScheduledExecutor(String namePrefix, int priority)
    • newSingleThreadScheduledExecutor

      public static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory)
    • newScheduledThreadPool

      public static ScheduledExecutorService newScheduledThreadPool(int corePoolSize, String namePrefix)
    • 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

      public static List<Runnable> shutdownAllNOW()