public static final AcknowledgeMode AUTO
- Auto - the container will issue the ack/nack based on whether the listener returns normally, or throws an exception.
- Do not confuse with RabbitMQ autoAck which is represented by NONE here.
The AUTO
is involved in the commitIfNecessary()
which is called only when your target listener returns normally
https://docs.spring.io/spring-amqp/reference/html/_reference.html#template-confirms