public class CustomizableThreadFactory extends org.springframework.util.CustomizableThreadCreator implements ThreadFactory
ThreadFactory interface,
allowing for customizing the created threads (name, priority, etc).
See the base class CustomizableThreadCreator
for details on the available configuration options.
CustomizableThreadCreator.setThreadNamePrefix(java.lang.String),
CustomizableThreadCreator.setThreadPriority(int),
序列化表格| 构造器和说明 |
|---|
CustomizableThreadFactory()
Create a new CustomizableThreadFactory with default thread name prefix.
|
CustomizableThreadFactory(String threadNamePrefix)
Create a new CustomizableThreadFactory with the given thread name prefix.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Thread |
newThread(Runnable runnable) |
public CustomizableThreadFactory()
public CustomizableThreadFactory(String threadNamePrefix)
threadNamePrefix - the prefix to use for the names of newly created threadspublic Thread newThread(Runnable runnable)
newThread 在接口中 ThreadFactory