public class ThreadUtils extends Object
Constructor and Description |
---|
ThreadUtils() |
Modifier and Type | Method and Description |
---|---|
static ThreadFactory |
createThreadFactory(String pattern,
boolean daemon)
Create a new ThreadFactory.
|
public static ThreadFactory createThreadFactory(String pattern, boolean daemon)
pattern
- The pattern to use. If this contains %d, it will be
replaced with a thread number. It should not contain more
than one %d.daemon
- True if we want daemon threads.