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

[cpp-client] add support of receiveAsync API #3389

Merged
merged 1 commit into from
Jan 21, 2019

Conversation

rdhabalia
Copy link
Contributor

Motivation

In many cases, client requires receiveAsync() api in Consumer. This api is already available into java-client but doesn't exist into CPP-client.

Modification

Add support for receiveAsync() api in cpp-client consumer.

This PR is rebased and reopened from #577

replace UnboundedBlockingQueue with queue

add result to receiveAsync-callback to fail callback on consumer closing/closed

check uninitialized consumer state

notify callback directly
Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

👍 Nice work!

@sijie sijie merged commit 02cddfd into apache:master Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants