public class ThreadUtils
extends java.lang.Object
Constructor and Description |
---|
ThreadUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.ThreadFactory |
createThreadFactory(java.lang.String pattern,
boolean daemon)
Create a new ThreadFactory.
|
public static java.util.concurrent.ThreadFactory createThreadFactory(java.lang.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.