public class ThreadUtils extends Object
Constructor and Description |
---|
ThreadUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkInterrupted(Throwable e) |
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) |
public static boolean checkInterrupted(Throwable e)
public static ExecutorService newSingleThreadExecutor(String processName)
public static ExecutorService newFixedThreadPool(int qty, String processName)
public static ScheduledExecutorService newSingleThreadScheduledExecutor(String processName)
public static ScheduledExecutorService newFixedThreadScheduledPool(int qty, String processName)
public static ThreadFactory newThreadFactory(String processName)
public static ThreadFactory newGenericThreadFactory(String processName)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.