pubsub: make poll wait for messages#2112
Merged
pongad merged 3 commits intogoogleapis:masterfrom Jun 6, 2017
pongad:pull-wait
Merged
pubsub: make poll wait for messages#2112pongad merged 3 commits intogoogleapis:masterfrom pongad:pull-wait
pongad merged 3 commits intogoogleapis:masterfrom
pongad:pull-wait
Conversation
Instead of returning immediately if no messages are available, poll now waits for messages. Fixes #2108.
davidtorres
reviewed
Jun 5, 2017
| PullRequest.newBuilder() | ||
| .setSubscription(subscription) | ||
| .setMaxMessages(maxDesiredPulledMessages) | ||
| .build()); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| new FutureCallback<PullResponse>() { | ||
| @Override | ||
| public void onSuccess(PullResponse pullResponse) { | ||
| if (pullResponse.getReceivedMessagesCount() == 0) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Contributor
Author
|
@davidtorres PTAL |
|
Changes Unknown when pulling ce47990 on pongad:pull-wait into ** on GoogleCloudPlatform:master**. |
Contributor
|
LGTM - this seems to fulfill the requested change. |
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
Apr 29, 2026
meltsufin
pushed a commit
that referenced
this pull request
May 1, 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Instead of returning immediately if no messages are available,
poll now waits for messages.
Fixes #2108.
@davidtorres @haakonringberg