Skip to content

pubsub: make poll wait for messages#2112

Merged
pongad merged 3 commits intogoogleapis:masterfrom
pongad:pull-wait
Jun 6, 2017
Merged

pubsub: make poll wait for messages#2112
pongad merged 3 commits intogoogleapis:masterfrom
pongad:pull-wait

Conversation

@pongad
Copy link
Copy Markdown
Contributor

@pongad pongad commented Jun 5, 2017

Instead of returning immediately if no messages are available,
poll now waits for messages.

Fixes #2108.

@davidtorres @haakonringberg

Instead of returning immediately if no messages are available,
poll now waits for messages.

Fixes #2108.
@pongad pongad requested a review from garrettjonesgoogle June 5, 2017 05:20
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 5, 2017
Copy link
Copy Markdown

@davidtorres davidtorres left a comment

Choose a reason for hiding this comment

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

Some comments

PullRequest.newBuilder()
.setSubscription(subscription)
.setMaxMessages(maxDesiredPulledMessages)
.build());

This comment was marked as spam.

This comment was marked as spam.

new FutureCallback<PullResponse>() {
@Override
public void onSuccess(PullResponse pullResponse) {
if (pullResponse.getReceivedMessagesCount() == 0) {

This comment was marked as spam.

@pongad
Copy link
Copy Markdown
Contributor Author

pongad commented Jun 6, 2017

@davidtorres PTAL

@coveralls
Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling ce47990 on pongad:pull-wait into ** on GoogleCloudPlatform:master**.

@garrettjonesgoogle
Copy link
Copy Markdown
Contributor

LGTM - this seems to fulfill the requested change.

@pongad pongad merged commit 19cc97d into googleapis:master Jun 6, 2017
@pongad pongad deleted the pull-wait branch June 6, 2017 03:40
chingor13 pushed a commit that referenced this pull request Feb 20, 2026
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
meltsufin pushed a commit that referenced this pull request May 2, 2026
* chore(main): release 3.31.4

* chore: generate libraries at Wed May 14 14:59:33 UTC 2025

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: cloud-java-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants