Skip to content

Mark MessageListener as ready on prefetch start #87

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

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

buddhike
Copy link

@buddhike buddhike commented Mar 5, 2020

Setting MessageListener before starting prefetch would
not mark the message listener as ready. Therefore start()
method should do this work in order to get pre-fetch
going even when number of messages to pre-fetch is set to 0.

Closes #86

Setting MessageListener before starting prefetch would
not mark the message listener as ready. Therefore start()
method should do this work in order to get pre-fetch
going even when number of messages to pre-fetch is set to 0.

Closes awslabs#86
@buddhike
Copy link
Author

buddhike commented Mar 5, 2020

It's not quite obvious but call to notifyStateChange() is now invoked inside messageListenerReady() -> requestMessage() 😉

Copy link

@haocheng-aws haocheng-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@haocheng-aws haocheng-aws merged commit 33ea8ae into awslabs:master Jun 2, 2020
@buddhike
Copy link
Author

@haocheng-aws Thanks for merging this PR. Could you please advise when the next release would be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQSMessageConsumerPrefetch does not start when number of messages to pre-fetch is set to 0
2 participants