public final class Threads extends Object
| Modifier and Type | Method and Description |
|---|---|
static ThreadFactory |
daemonThreadsNamed(String nameFormat)
Creates a
ThreadFactory that creates named daemon threads. |
static ThreadFactory |
threadsNamed(String nameFormat)
Creates a
ThreadFactory that creates named threads
using the specified naming format. |
public static ThreadFactory threadsNamed(String nameFormat)
ThreadFactory that creates named threads
using the specified naming format.nameFormat - a String.format(String, Object...)-compatible
format string, to which a string will be supplied as the single
parameter. This string will be unique to this instance of the
ThreadFactory and will be assigned sequentially.public static ThreadFactory daemonThreadsNamed(String nameFormat)
ThreadFactory that creates named daemon threads.
using the specified naming format.nameFormat - see threadsNamed(String)Copyright © 2010–2020 Airlift. All rights reserved.