package com.junmp.jyzb.task;

import com.junmp.jyzb.config.rabbitMQ.TopicRabbitConfig;
import com.junmp.v2.job.api.JobAction;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class QueueBindExchangeAction implements JobAction {

    @Autowired
    TopicRabbitConfig topicRabbitConfig;

    @Override
    public void action() {
         topicRabbitConfig.createQueuesAndBindings(topicRabbitConfig.topicExchange());

    }
}
