Class ThreadUtils


  • public class ThreadUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ThreadUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean checkInterrupted​(java.lang.Throwable e)  
      static java.lang.String getProcessName​(java.lang.Class<?> clazz)  
      static java.util.concurrent.ExecutorService newFixedThreadPool​(int qty, java.lang.String processName)  
      static java.util.concurrent.ScheduledExecutorService newFixedThreadScheduledPool​(int qty, java.lang.String processName)  
      static java.util.concurrent.ThreadFactory newGenericThreadFactory​(java.lang.String processName)  
      static java.util.concurrent.ExecutorService newSingleThreadExecutor​(java.lang.String processName)  
      static java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor​(java.lang.String processName)  
      static java.util.concurrent.ThreadFactory newThreadFactory​(java.lang.String processName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ThreadUtils

        public ThreadUtils()
    • Method Detail

      • checkInterrupted

        public static boolean checkInterrupted​(java.lang.Throwable e)
      • newSingleThreadExecutor

        public static java.util.concurrent.ExecutorService newSingleThreadExecutor​(java.lang.String processName)
      • newFixedThreadPool

        public static java.util.concurrent.ExecutorService newFixedThreadPool​(int qty,
                                                                              java.lang.String processName)
      • newSingleThreadScheduledExecutor

        public static java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor​(java.lang.String processName)
      • newFixedThreadScheduledPool

        public static java.util.concurrent.ScheduledExecutorService newFixedThreadScheduledPool​(int qty,
                                                                                                java.lang.String processName)
      • newThreadFactory

        public static java.util.concurrent.ThreadFactory newThreadFactory​(java.lang.String processName)
      • newGenericThreadFactory

        public static java.util.concurrent.ThreadFactory newGenericThreadFactory​(java.lang.String processName)
      • getProcessName

        public static java.lang.String getProcessName​(java.lang.Class<?> clazz)