package com.cyl.tencent;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
 
@Configuration
public class QueueConfig {
 
    @Bean("taskQueue")
    public BlockingQueue<OrderMessageModel> taskQueue() {
        return new LinkedBlockingQueue<>();
    }
}