package org.jeecg.modules.diseaseAnalysis.algorithm;

import lombok.extern.slf4j.Slf4j;

/**
 * 多生产者模型-单消费者模型
 * 多生产者
 */
@Slf4j
public class MultiProducerLine {


    public static void produce(String analysisLineBatchId) {
        try {
            Buffer.queue.put(analysisLineBatchId);
            log.info("MultiProducer[生产者]|线程id:【" + Thread.currentThread().getId() + "】=============分析批次ID:【" + analysisLineBatchId + "】");
        } catch (InterruptedException e) {
            e.printStackTrace();
            log.info("MultiProducer[生产者]|线程id:【" + Thread.currentThread().getId() + "】=============分析批次ID:【" + analysisLineBatchId + "】异常信息:" + e.getMessage());
        }
    }
}
