public class NamedThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
NamedThreadFactory() |
NamedThreadFactory(String prefix) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPrefix() |
Thread |
newThread(Runnable r)
获取新的名字以prefix为前缀的线程
|
void |
setPrefix(String prefix) |
public NamedThreadFactory()
public NamedThreadFactory(String prefix)
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.