Package org.apache.curator.utils
Class ThreadUtils
java.lang.Object
org.apache.curator.utils.ThreadUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static String
getProcessName
(Class<?> clazz) static ExecutorService
newFixedThreadPool
(int qty, String processName) static ScheduledExecutorService
newFixedThreadScheduledPool
(int qty, String processName) static ThreadFactory
newGenericThreadFactory
(String processName) static ExecutorService
newSingleThreadExecutor
(String processName) static ScheduledExecutorService
newSingleThreadScheduledExecutor
(String processName) static ThreadFactory
newThreadFactory
(String processName)
-
Constructor Details
-
ThreadUtils
public ThreadUtils()
-
-
Method Details
-
checkInterrupted
-
newSingleThreadExecutor
-
newFixedThreadPool
-
newSingleThreadScheduledExecutor
-
newFixedThreadScheduledPool
-
newThreadFactory
-
newGenericThreadFactory
-
getProcessName
-