package com.skr.mdm.rabbitmq;

import com.skr.mdm.constant.RabbitmqQueueConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * rabbitmq队列注册
 * @author nfq
 * @date 2022/06/13 16:44
 */
@Configuration
public class RabbitMQQueue {

    /**
     * 客户端登录成功后回调队列
     * @return
     */
    @Bean
    public Queue loginCallBackQueue() {
        return new Queue(RabbitmqQueueConstants.REGISTER_SUCCESS_QUEUE, true);
    }

}
