(Quick Reference)

autoAck

Purpose

Sets whether incoming messages should be automatically acknowledged.

Examples

static rabbitConfig = [
    queue: "example.queue",
    autoAck: AutoAck.POST
]

Description

There are 3 auto-acknowledgement modes:

Enum ValueEffect
AutoAck.MANUALThe message is never automatically acknowledged. The message handler is responsible for acknowleding the message.
AutoAck.ALWAYSThe message will be automatically acknowledged before the message is delivered the message handler.
AutoAck.POSTThe message will be automatically acknowledged after the message handler successfully completes. If an unhandled exception escapes the handler, the message is rejected. This is the default mode.