Package org.apache.curator.utils
Class ThreadUtils
- java.lang.Object
-
- org.apache.curator.utils.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 booleancheckInterrupted(java.lang.Throwable e)static java.lang.StringgetProcessName(java.lang.Class<?> clazz)static java.util.concurrent.ExecutorServicenewFixedThreadPool(int qty, java.lang.String processName)static java.util.concurrent.ScheduledExecutorServicenewFixedThreadScheduledPool(int qty, java.lang.String processName)static java.util.concurrent.ThreadFactorynewGenericThreadFactory(java.lang.String processName)static java.util.concurrent.ExecutorServicenewSingleThreadExecutor(java.lang.String processName)static java.util.concurrent.ScheduledExecutorServicenewSingleThreadScheduledExecutor(java.lang.String processName)static java.util.concurrent.ThreadFactorynewThreadFactory(java.lang.String processName)
-
-
-
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)
-
-