public class NamedThreadFactory extends Object implements ThreadFactory
| 构造器和说明 |
|---|
NamedThreadFactory(String prefix,
boolean makeDaemons)
Instantiates a new Named thread factory.
|
NamedThreadFactory(String prefix,
int totalSize)
Instantiates a new Named thread factory.
|
NamedThreadFactory(String prefix,
int totalSize,
boolean makeDaemons)
Instantiates a new Named thread factory.
|
public NamedThreadFactory(String prefix, int totalSize, boolean makeDaemons)
prefix - the prefixtotalSize - the total sizemakeDaemons - the make daemonspublic NamedThreadFactory(String prefix, boolean makeDaemons)
prefix - the prefixmakeDaemons - the make daemonspublic NamedThreadFactory(String prefix, int totalSize)
prefix - the prefixtotalSize - the total sizepublic Thread newThread(Runnable r)
newThread 在接口中 ThreadFactoryCopyright © 2020 Seata. All rights reserved.