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 ThreadFactory
runner
- Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.