I'm new in rabbitmq.I'm using spring-amqp to implement the feature. As we know spring provide @RabbitListener to register a listener to queue when the app initialization. I want to design a function when I click some button, a new consumer will be created and listen to a specified queue. Java base provide channel.basicConsume() method to consume a queue. Is spring provide such function ?
I want to implement like :
producer keep sending messages to a fanout exchange.
when a consume wants to join, call function1 -> create queue and binding to exchange -> consume messages.
when a consume wants leave, call function2 -> disconnect