Skip to content

Commit 189d701

Browse files
committed
Mention only quorum queues support message annotation update
With the modified outcome.
1 parent 79d9c7c commit 189d701

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/com/rabbitmq/client/amqp/Consumer.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,15 @@ interface Context {
9090
* <p>This maps to the AMQP 1.0 <code>
9191
* modified{delivery-failed = true, undeliverable-here = true}</code> outcome.
9292
*
93+
* <p><b>Only quorum queues support the modification of message annotations with the <code>
94+
* modified</code> outcome.</b>
95+
*
9396
* @param annotations message annotations to combine with existing ones
9497
* @see <a
9598
* href="https://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-modified">AMQP
9699
* 1.0 <code>modified</code> outcome</a>
100+
* @see <a href="https://www.rabbitmq.com/docs/amqp#modified-outcome">Modified Outcome Support
101+
* in RabbitMQ</a>
97102
*/
98103
void discard(Map<String, Object> annotations);
99104

@@ -118,10 +123,15 @@ interface Context {
118123
* <p>This maps to the AMQP 1.0 <code>
119124
* modified{delivery-failed = false, undeliverable-here = false}</code> outcome.
120125
*
126+
* <p><b>Only quorum queues support the modification of message annotations with the <code>
127+
* modified</code> outcome.</b>
128+
*
121129
* @param annotations message annotations to combine with existing ones
122130
* @see <a
123131
* href="https://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-modified">AMQP
124132
* 1.0 <code>modified</code> outcome</a>
133+
* @see <a href="https://www.rabbitmq.com/docs/amqp#modified-outcome">Modified Outcome Support
134+
* in RabbitMQ</a>
125135
*/
126136
void requeue(Map<String, Object> annotations);
127137
}

0 commit comments

Comments
 (0)