Skip to content

Instantly share code, notes, and snippets.

@rbaul
Created January 6, 2022 20:04
Show Gist options
  • Save rbaul/cbf000cfb2b054b8d124cda7b99bcc62 to your computer and use it in GitHub Desktop.
Save rbaul/cbf000cfb2b054b8d124cda7b99bcc62 to your computer and use it in GitHub Desktop.
Rabbit Listener configure arguments
@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