public class CustomizableThreadFactory extends CustomizableThreadCreator implements java.util.concurrent.ThreadFactory
See the base class CustomizableThreadCreator
for details on the available configuration options.
CustomizableThreadCreator.setThreadNamePrefix(java.lang.String)
,
CustomizableThreadCreator.setThreadPriority(int)
,
Serialized FormConstructor and Description |
---|
CustomizableThreadFactory()
Create a new CustomizableThreadFactory with default thread name prefix.
|
CustomizableThreadFactory(java.lang.String threadNamePrefix)
Create a new CustomizableThreadFactory with the given thread name prefix.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Thread |
newThread(java.lang.Runnable runnable) |
createThread, getDefaultThreadNamePrefix, getThreadGroup, getThreadNamePrefix, getThreadPriority, isDaemon, nextThreadName, setDaemon, setThreadGroup, setThreadGroupName, setThreadNamePrefix, setThreadPriority
public CustomizableThreadFactory()
public CustomizableThreadFactory(java.lang.String threadNamePrefix)
threadNamePrefix
- the prefix to use for the names of newly created threads