Skip to content

Add ability to set consumer priority with AmqpTemplate #1533

Closed
@nreinhardt

Description

@nreinhardt

Expected Behavior

It should be possible to configure consumer arguments when consuming with RabbitTemplate. In my particular use case, I would like to set the consumer priority when consuming with an AmqpTemplate instance.

Current Behavior

Currently, it is impossible to set the consumer arguments when consuming with AmqpTemplate.

Context

In my particular use case, I would like to:

  • Set the consumer priority to a particular value
  • Wait indefinitely until a message can be received.
  • Process the message, which may take several minutes.
  • Terminate the program

There is some documentation for configuring the consumer priority when performing asynchronous consumption. However, I haven't found a solution for synchronous consumption.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions