Created
January 6, 2022 20:04
-
-
Save rbaul/cbf000cfb2b054b8d124cda7b99bcc62 to your computer and use it in GitHub Desktop.
Rabbit Listener configure arguments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RabbitListener(bindings = @QueueBinding( | |
value = @Queue(value = "QUEE_NAME", | |
durable = "true", | |
arguments = { | |
@Argument(name = "x-single-active-consumer", value = "true", type = "java.lang.Boolean") | |
} | |
), | |
exchange = @Exchange(value = "EXCHANGE_NAME", type = ExchangeTypes.TOPIC), | |
key = { | |
"ROUTE_KEY_1", | |
"ROUTE_KEY_1" | |
}) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment