Skip to content
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

Set onStopConsuming while building consumer and make MessageConsumer accessible to handler functions #260

Merged
merged 8 commits into from
Feb 20, 2024

Conversation

mateusjunges
Copy link
Owner

This PR moves the call to set a onStopConsuming callback to the Consumer Builder instance instead of the consumer. Previously, you had to create the consumer calling build before setting the onStopConsuming callback. This PR makes it possible to set it while building your consumer.

Also, an instance of MessageConsumer is now passed to your handler functions, so it's easier to stop consuming messages.

@mateusjunges mateusjunges self-assigned this Feb 20, 2024
@mateusjunges mateusjunges changed the title Move onStopConsuming call to consumer builder and give instance of MessageConsumer to handler functions Set onStopConsuming while building consumer and make MessageConsumer accessible to handler functions Feb 20, 2024
@mateusjunges mateusjunges merged commit cdb48cd into master Feb 20, 2024
8 checks passed
@mateusjunges mateusjunges deleted the move-on-stop-consuming-to-builder branch February 28, 2024 12:46
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.

1 participant