简体   繁体   English

Vert.x AMQP 客户端的 DeliveryStates 有什么区别

[英]What's the difference among the DeliveryStates for the Vert.x AMQP Client

As a AmqpReceiver, what's the difference among the different DeliveryStates for a received message.作为 AmqpReceiver,接收到的消息的不同 DeliveryStates 之间有什么区别。

Runing a ReceiverTest for test, see https://github.com/vert-x3/vertx-amqp-client/blob/master/src/test/java/io/vertx/amqp/ReceiverTest.java .运行 ReceiverTest 进行测试,请参阅https://github.com/vert-x3/vertx-amqp-client/blob/master/src/test/java/io/vertx/amqp/ReceiverTest.java

It always got the same result when running testReceptionWithAcceptedMessages, testReceptionWithRejectedMessages: All the messages in the test queue are deleted.运行testReceptionWithAcceptedMessages时总是得到相同的结果,testReceptionWithRejectedMessages:测试队列中的所有消息都被删除。

Is it right that the message is still deleted from the MQ server when it is marked as rejected or released?当消息被标记为拒绝或释放时,消息仍然从MQ服务器中删除是对的吗? Where can I find more docs about this?我在哪里可以找到更多关于此的文档?

Can Vert.x AMQP Client do the same things as the RabbitMQ client when consuming a queue? Vert.x AMQP 客户端在消费队列时可以做与 RabbitMQ 客户端相同的事情吗? For example, positive or negative acknowledgements, multi-acks and requeueing etc. See https://www.rabbitmq.com/confirms.html#basics .例如,肯定或否定确认、多确认和重新排队等。参见https://www.rabbitmq.com/confirms.html#basics

Thanks.谢谢。

In those tests the client is Accepting and Rejecting the messages from the ActiveMQ Artemis broker.在这些测试中,客户端正在接受和拒绝来自 ActiveMQ Artemis 代理的消息。 The broker will either discard the message when accepted, or DLQ the message when rejected under the configuration in the tests.在测试中的配置下,代理将在接受时丢弃消息,或者在拒绝时对消息进行 DLQ。 You can configure the broker differently in your own case but for the sake of the tests it isn't relevant.您可以根据自己的情况对代理进行不同的配置,但为了测试,它不相关。 What the broker you are talking to does when you Accept, Release, Rejected or Modify a delivery via a set disposition is going to vary depending on the broker you use and its configuration.当您通过设置的处置接受、释放、拒绝或修改交付时,您正在与之交谈的代理将根据您使用的代理及其配置而有所不同。

You can refer to section 3.3 and section 3.4 of the AMQP 1.0 specification for a definition of how delivery state affect deliveries being available, acquired or archived.关于交付 state 如何影响交付可用、获取或存档的定义,您可以参考 AMQP 1.0 规范的第 3.3 节第 3.4 节

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM