Browse Source

Add NoAction to disable implicit acknowledgement

Author:    Adomas Kizogian <adomas.kiz@gmail.com>
pull/57/head
Adomas Kizogian 4 years ago
committed by Adomas Kizogian
parent
commit
ba422d64cd
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      consume.go

+ 5
- 1
consume.go View File

@ -14,8 +14,12 @@ type Action int
type Handler func(d Delivery) (action Action)
const (
// NoAction skip acknowledgement for this msg.
// Note: Acknowledgement can be performed later by calling an appropriate rabbitmq.Delivery
// Ack, Nack or Reject method.
NoAction Action = iota - 1
// Ack default ack this msg after you have successfully processed this delivery.
Ack Action = iota
Ack
// NackDiscard the message will be dropped or delivered to a server configured dead-letter queue.
NackDiscard
// NackRequeue deliver this message to a different consumer.


Loading…
Cancel
Save