public class DefaultThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
DefaultThreadFactory(String threadPoolName) |
DefaultThreadFactory(String threadPoolName,
int priority) |
| Modifier and Type | Method and Description |
|---|---|
static DefaultThreadFactory |
getInstance(String threadName,
int priority)
Gets the single INSTANCE of DefaultThreadFactory.
|
Thread |
newThread(@NotNull Runnable r) |
public DefaultThreadFactory(String threadPoolName)
public DefaultThreadFactory(String threadPoolName, int priority)
public static DefaultThreadFactory getInstance(String threadName, int priority)
threadName - the thread namepriority - the prioritypublic Thread newThread(@NotNull @NotNull Runnable r)
newThread in interface ThreadFactoryr - RunnableThreadFactory.newThread(java.lang.Runnable)Copyright © 2025. All rights reserved.