public class DumpingThreadFactory extends Object implements ThreadFactory
ThreadFactory implementation that creates DumpingThreads.| Constructor and Description |
|---|
DumpingThreadFactory()
Creates a new DumpingThread factory.
|
DumpingThreadFactory(boolean createDaemonThreads)
Creates a new DumpingThread factory.
|
DumpingThreadFactory(String namePrefix)
Creates a new dumping thread factory that uses the given name prefix and
a running counter appended to it as names for the created threads.
|
DumpingThreadFactory(String namePrefix,
boolean createDaemonThreads)
Creates a new dumping thread factory that uses the given name prefix and
a running counter appended to it as names for the created threads.
|
| Modifier and Type | Method and Description |
|---|---|
Thread |
newThread(Runnable r)
Creates a new
DumpingThread that will execute the given runnable. |
public DumpingThreadFactory()
public DumpingThreadFactory(String namePrefix)
namePrefix - The name prefix, preferrable ending in a hyphen (
‘-’) or space (‘ ’)public DumpingThreadFactory(boolean createDaemonThreads)
createDaemonThreads - true to create daemon threadspublic DumpingThreadFactory(String namePrefix, boolean createDaemonThreads)
namePrefix - The name prefix, preferrable ending in a hyphen (
‘-’) or space (‘ ’)createDaemonThreads - true to create daemon threadspublic Thread newThread(Runnable r)
DumpingThread that will execute the given runnable.newThread in interface ThreadFactoryr - The runnable to execute in a new DumpingThreadDumpingThread that will execute the given
runnableThreadFactory.newThread(java.lang.Runnable)Copyright © 2026. All rights reserved.