public class NamedThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
| Constructor and Description |
|---|
NamedThreadFactory(@NonNull java.lang.String basename)
Creates a new instance of the factory.
|
NamedThreadFactory(@NonNull java.lang.String basename,
boolean daemon)
Creates a new instance of the factory.
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull java.lang.Thread |
newThread(@NonNull java.lang.Runnable runnable) |
public NamedThreadFactory(@NonNull java.lang.String basename)
basename - Basename of a new tread created by this factory.public NamedThreadFactory(@NonNull java.lang.String basename,
boolean daemon)
basename - Basename of a new tread created by this factory.daemon - If true, marks the new thread as a daemon threadCopyright © 2022 - present; JODConverter. All rights reserved.