public final class ThreadFactoryUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static ThreadFactory |
build(String nameFormat)
Creates a
ThreadFactory that spawns off threads. |
static ThreadFactory |
daemon(String nameFormat)
Creates a
ThreadFactory that spawns off daemon threads. |
public static ThreadFactory daemon(String nameFormat)
ThreadFactory that spawns off daemon threads.nameFormat - name pattern for each thread. should contain '%d' to distinguish between
threads.public static ThreadFactory build(String nameFormat)
ThreadFactory that spawns off threads.nameFormat - name pattern for each thread. should contain '%d' to distinguish between
threads.Copyright © 2015. All Rights Reserved.