SimpleMessageListenerContainer bulk message processing
问题 I have a stream of incoming data that is sent to RabbitMQ as individual messages. I want to send these to a service that requires a batch of messages. I need to send the request to the service when I either have a batch of 1000 messages or when 5 seconds have expired. Is this possible using SimpleMessageListenerContainer? The SimpleMessageListenerContainer supports transactions, however this won't help with the 5 second timeout. I did look at the method doReceiveAndExecute