@InterfaceAudience.Private public class DaemonThreadFactory extends Object implements ThreadFactory
Modifier and Type | Field and Description |
---|---|
private ThreadGroup |
group |
private String |
namePrefix |
private static AtomicInteger |
poolNumber |
private AtomicInteger |
threadNumber |
Constructor and Description |
---|
DaemonThreadFactory(String name) |
private static final AtomicInteger poolNumber
private final ThreadGroup group
private final AtomicInteger threadNumber
private final String namePrefix
public DaemonThreadFactory(String name)
public Thread newThread(Runnable r)
newThread
in interface ThreadFactory
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.