public class ThreadUtils extends Object
Constructor and Description |
---|
ThreadUtils() |
Modifier and Type | Method and Description |
---|---|
static ThreadFactory |
namedThreadFactory(String prefix)
Constructs threads with names
<prefix>-<pool number>-thread-<thread number> . |
public static ThreadFactory namedThreadFactory(String prefix)
<prefix>-<pool number>-thread-<thread number>
.prefix
- prefix to be used for thread names created by this ThreadFactory
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.