channel.basicReject
时间: 2024-05-17 19:18:54 浏览: 50
channel.basicReject方法是RabbitMQ中的一个命令,用于告诉RabbitMQ拒绝接收某条消息。当消费者调用这个方法时,RabbitMQ会将deliveryTag对应的消息标记为拒绝状态,并将其从队列中移除。注意,即使使用basic.reject方法拒绝了消息,该消费者仍然会继续消费到被拒绝的消息。在RabbitMQ 2.0.0版本之后引入了Basic.Reject命令,消费者可以调用channel.basicReject方法来实现拒绝消息的功能。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [RabbitMQ 消息队列回执 basicReject basicNack basicRecover 用法和区别](https://blog.csdn.net/qq_35237533/article/details/121468715)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [RabbitMq基础篇-09-channel接口常用几种参数详解](https://blog.csdn.net/Hmj050117/article/details/121587672)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文