Örnek
Şöyle yaparız
deleteQueue metodu@Autowiredprivate RabbitAdmin rabbitAdmin;public void addNewQueue(String queueName, String exchangeName, String routingKey) {Queue queue = new Queue(queueName, true, false, false);Binding binding = new Binding(queueName,Binding.DestinationType.QUEUE,exchangeName,routingKey,null);rabbitAdmin.declareQueue(queue);rabbitAdmin.declareBinding(binding);}
Hiç yorum yok:
Yorum Gönder