public final class Threads extends Object
| Modifier and Type | Field and Description |
|---|---|
static Executor |
SAME_THREAD_EXECUTOR
A executor that execute task from the submitter thread.
|
| Modifier and Type | Method and Description |
|---|---|
static ThreadFactory |
createDaemonThreadFactory(String nameFormat)
Handy method to create
ThreadFactory that creates daemon threads with the given name format. |
public static final Executor SAME_THREAD_EXECUTOR
public static ThreadFactory createDaemonThreadFactory(String nameFormat)
ThreadFactory that creates daemon threads with the given name format.nameFormat - Name format for the thread names. It should be a format string compatible
with the String.format(String, Object...) that takes a single number as the format
argument.ThreadFactory.Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.