java.util.concurrent.ThreadFactorypublic final class WorkerThreadFactory extends java.lang.Object implements java.util.concurrent.ThreadFactory
| Constructor | Description |
|---|---|
WorkerThreadFactory(java.lang.String namePrefix) |
Creates a new thread factory whose threads will have names using the specified prefix.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Thread |
newThread(java.lang.Runnable r) |
public WorkerThreadFactory(java.lang.String namePrefix)
namePrefix - The prefix for the thread names, may be null or empty to derive the prefix from the
caller's simple class name.public java.lang.Thread newThread(java.lang.Runnable r)
newThread in interface java.util.concurrent.ThreadFactory