public class NamedThreadFactory extends Object implements ThreadFactory
| 构造器和说明 |
|---|
NamedThreadFactory(String baseName) |
NamedThreadFactory(String baseName,
boolean addTimestamps) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBaseName() |
Thread |
newThread(Runnable r) |
void |
setAddTimestamps(boolean addTimestamps) |
void |
setBaseName(String baseName) |
void |
setDaemonFlag(Boolean daemonFlag) |
void |
setPriority(Integer priority) |
void |
setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler uncaughtExceptionHandler) |
public NamedThreadFactory(String baseName)
public NamedThreadFactory(String baseName, boolean addTimestamps)
public Thread newThread(Runnable r)
newThread 在接口中 ThreadFactorypublic String getBaseName()
public void setBaseName(String baseName)
public void setAddTimestamps(boolean addTimestamps)
addTimestamps - the addTimestamps to setpublic void setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler uncaughtExceptionHandler)
uncaughtExceptionHandler - the uncaughtExceptionHandler to setpublic void setPriority(Integer priority)
priority - the priority to setpublic void setDaemonFlag(Boolean daemonFlag)
daemonFlag - the daemonFlag to setCopyright © 2018 jretty-org. All rights reserved.