package com.hzs.common.core.utils;

import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Description: 线程工具类
 * Author: jiang chao
 * Time: 2022/8/30 10:10
 * Classname: ThreadUtil
 * PackageName: com.hzs.common.core.utils
 */
@Component
public class ThreadUtils {

    /**
     * 初始化创建4个长度的固定线程池
     */
    public static ExecutorService executorService = Executors.newFixedThreadPool(4);

}
