public class DaemonThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
DaemonThreadFactory(String prefix)
Constructor
|
DaemonThreadFactory(String prefix,
int threadPriority)
Constructor
|
public DaemonThreadFactory(String prefix)
prefix - thread name prefixpublic DaemonThreadFactory(String prefix, int threadPriority)
prefix - thread name prefixthreadPriority - set thread prioritypublic Thread newThread(Runnable runner)
newThread in interface ThreadFactoryrunner - Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.