java.util.concurrent.ThreadFactory interface,
allowing for customizing the created threads (name, priority, etc).
See the base class org.
for details on the available configuration options.
setThreadNamePrefix, setThreadPriority
| Access | Constructor and Description |
|---|---|
| public | |
| public | CustomizableThreadFactory(String
the prefix to use for the names of newly created threads threadNamePrefix)Create a new CustomizableThreadFactory with the given thread name prefix. |
| Modifier and Type | Method and Description |
|---|---|
| public Thread | newThread(Runnable
a runnable to be executed by new thread instance runnable)Implements java. Constructs a new unstarted |
| CustomizableThreadFactory | back to summary |
|---|---|
| public CustomizableThreadFactory() Create a new CustomizableThreadFactory with default thread name prefix. | |
| CustomizableThreadFactory | back to summary |
|---|---|
| public CustomizableThreadFactory(String threadNamePrefix) Create a new CustomizableThreadFactory with the given thread name prefix.
| |
| newThread | back to summary |
|---|---|
| public Thread newThread(Runnable runnable) Implements java. Doc from java. Constructs a new unstarted | |