Skip to content

Batching RabbitListener not working List<Message<Object>> messages #2559

Discussion options

You must be logged in to vote

You also need to set consumerBatchEnabled to enable batching.

factory.setConsumerBatchEnabled(true);
	/**
	 * Set to true to present a list of messages based on the {@link #setBatchSize(Integer)},
	 * if the listener supports it. Starting with version 3.0, setting this to true will
	 * also {@link #setBatchListener(boolean)} to true.
	 * @param consumerBatchEnabled true to create message batches in the container.
	 * @since 2.2
	 * @see #setBatchSize(Integer)
	 * @see #setBatchListener(boolean)
	 */
	public void setConsumerBatchEnabled(boolean consumerBatchEnabled) {

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@adityaparikh91087
Comment options

@garyrussell
Comment options

@adityaparikh91087
Comment options

Answer selected by adityaparikh91087
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