-
Notifications
You must be signed in to change notification settings - Fork 636
Add batchReceiveTimeout in SimpleMessageListenerContainer #2601
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
Comments
Sorry, the info you provide is not enough. I don't see how that extra new property can be helpful. Please, elaborate. |
@artembilan Thanks for reply. and sorry for not enough explanation. If it is not a batchlistener or batchSize is 1, it is natural to wait for each message for receiveTimeout. But if batchSize is 1000 and receiveTimeout is 1000ms and This is that if messages are provided to BlockingQueueConsumer.queue every (receiveTimeout-1)ms. So, batchReceiveTimeout it can limit the time it waits to fill batchSize. |
OK. So, your request is to emit the gathered batch not after the whole number, but when some timeout threshold is reached. If I understand your correctly, feel free to contribute the fix and I'm gladly review it: https://github.com/spring-projects/spring-amqp/blob/main/CONTRIBUTING.adoc |
Fixes spring-projects#2601 stop to waiting next message and execute listener when batchReceiveTimeout is timed out.
Fixes spring-projects#2601 stop to waiting next message and execute listener when batchReceiveTimeout is timed out.
Fixes spring-projects#2601 stop to waiting next message and execute listener when batchReceiveTimeout is timed out.
Fixes spring-projects#2601 stop to waiting next message and execute listener when batchReceiveTimeout is timed out.
Fixes spring-projects#2601 stop to waiting next message and execute listener when batchReceiveTimeout is timed out.
Expected Behavior
receiveTimeout
is The maximum time to wait for each message.If there is
batchReceiveTimeout
, the time while waiting for the entire batchSize can be applied not each message.Current Behavior
There is no batchReceiveTimeout.
so, receiveTimeout applies to individual messages.. wait for
batchSize*receiveTimeout
amount of time in worst case.The text was updated successfully, but these errors were encountered: