Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quick question...hopefully #420

Closed
born2snipe opened this issue May 17, 2016 · 1 comment
Closed

quick question...hopefully #420

born2snipe opened this issue May 17, 2016 · 1 comment
Labels

Comments

@born2snipe
Copy link

Maybe the method is poorly named or I maybe I don't fully understand the domain but....this logic looked suspicious to me:

https://github.com/spring-projects/spring-amqp/blob/master/spring-amqp/src/main/java/org/springframework/amqp/core/AcknowledgeMode.java#L32

Shouldn't the comparison be against AUTO instead of NONE?

@garyrussell
Copy link
Contributor

It's a bit unfortunate, but correct.

In the RabbitMQ world, "auto ack" means no acks - i.e. the broker marks the message as delivered as soon as it is sent to the client.

In the Spring world (specifically JMS) AUTO ack means the listener container takes care of the ack when the listener returns normally (and nacks for exceptions).

So, when Spring AMQP was created, it was aligned more with spring-jms and AUTO means the container will send the acks, MANUAL means the user is responsible for acking and NONE means no acks (i.e. auto Ack in RabbitMQ-speak).

(This is my understanding, I wasn't here at the time).

I will, however, take this opportunity to add some javadocs there.

garyrussell added a commit to garyrussell/spring-amqp that referenced this issue May 17, 2016
garyrussell added a commit to garyrussell/spring-amqp that referenced this issue May 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants