Skip to content
Discussion options

You must be logged in to vote

You are checking the configured properties, not the effective acknowledgment mode used by the running ListenerConsumer.

In 4.0.6, the listener adapter detects CompletableFuture from the declared method return type and marks the listener as async: HandlerAdapter. The container then derives a private effective mode:

  1. asyncReplies becomes true for that adapter.
  2. determineAckMode() reads the configured mode and locally changes it to MANUAL when the listener is async.

That happens inside ListenerConsumer and inside determineAckMode(). It does not mutate the public ContainerProperties object. Therefore these values are expected:

containerProperties.getAckMode() == BATCH
containerProperties.isAs…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alexbujenita
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants