You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Resolvesspring-projects#1533
Allow setting consumer arguments when using non-zero receive
timeouts using the `RabbitTemplate`.
**cherry-pick to 2.4.x**
garyrussell
added a commit
to garyrussell/spring-amqp
that referenced
this issue
Nov 15, 2022
Resolvesspring-projects#1533
Allow setting consumer arguments when using non-zero receive
timeouts using the `RabbitTemplate`.
**cherry-pick to 2.4.x**
Resolves#1533
Allow setting consumer arguments when using non-zero receive
timeouts using the `RabbitTemplate`.
**cherry-pick to 2.4.x**
# Conflicts:
# spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitTemplate.java
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:
There is some documentation for configuring the consumer priority when performing asynchronous consumption. However, I haven't found a solution for synchronous consumption.
The text was updated successfully, but these errors were encountered: