You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
453 B
20 lines
453 B
package com.fanruan.api.concurrent; |
|
|
|
import com.fr.concurrent.NamedThreadFactory; |
|
|
|
/** |
|
* @author Lucian.Chen |
|
* @version 10.0 |
|
* Created by Lucian.Chen on 2020/3/27 |
|
*/ |
|
public class ConcurrentKit { |
|
|
|
/** |
|
* 创建命名的线程工厂 |
|
* @param prefix 线程池名称前缀 |
|
* @return 线程工厂 |
|
*/ |
|
public static NamedThreadFactory newNamedThreadFactory(String prefix) { |
|
return new NamedThreadFactory(prefix); |
|
} |
|
}
|
|
|