Consuming not acknowledge messages from RabbitMq

后端 未结 2 1968
谎友^
谎友^ 2020-12-08 22:07

I have create a simple publisher and a consumer which subscribes on the queue using basic.consume.

My consumer acknowledges the messages when the job r

2条回答
  •  清歌不尽
    2020-12-08 23:00

    If you do not want to restart the consumer, then basic.recover AMQP command may be what you want. According to AMQP protocol:

    basic.recover(bit requeue)
    
    Redeliver unacknowledged messages.
    
    This method asks the server to redeliver all unacknowledged messages on a specified channel. 
    Zero or more messages may be redelivered. This method replaces the asynchronous Recover. 
    

提交回复
热议问题