2021与蓝度共同重构项目,服务端
liuhaonan
2022-11-14 5cfaa9b36929545906d57c48c0f07a7c6f23d157
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.sandu.ximon.admin.newnova.utils;
 
import org.apache.commons.lang.RandomStringUtils;
 
import java.util.concurrent.CountDownLatch;
 
/**
 * @author LiuHaoNan
 * @date 2022/11/10
 */
public class CountDownLatchUtil {
    public String createCoutDown(com.sandu.ximon.admin.utils.CountDownLatchUtil countDownLatchUtil) {
        CountDownLatch countDownLatch = new CountDownLatch(1);
        //获取一个7位随机数
        String str = RandomStringUtils.randomAlphanumeric(7);
        countDownLatchUtil.push(str, countDownLatch);
        return str;
    }
}