| Modifier and Type | Field and Description |
|---|---|
| private final boolean | daemon
Whether to set daemon mode. |
| private static final AtomicInteger | threadIdx
The thread index counter, used for assigning unique thread ids. |
| private final String | threadNamePrefix
The thread name prefix. |
| Access | Constructor and Description |
|---|---|
| pack-priv | SimpleThreadFactory(final String
prefix for created threads. threadNamePrefix, final boolean create daemon threads? daemon)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public Thread | Returns: the threadthe runnable runnable)Implements java. New thread. |
| daemon | back to summary |
|---|---|
| private final boolean daemon Whether to set daemon mode. | |
| threadIdx | back to summary |
|---|---|
| private static final AtomicInteger threadIdx The thread index counter, used for assigning unique thread ids. | |
| threadNamePrefix | back to summary |
|---|---|
| private final String threadNamePrefix The thread name prefix. | |
| SimpleThreadFactory | back to summary |
|---|---|
| pack-priv SimpleThreadFactory(final String threadNamePrefix, final boolean daemon) Constructor.
| |
| newThread | back to summary |
|---|---|
| public Thread newThread(final Runnable runnable) Implements java. New thread. | |