Skip to content

Conversation

@pongad
Copy link
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

@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
Contributor Author

pongad commented Jun 6, 2017

@davidtorres PTAL

@coveralls
Copy link

Coverage Status

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

@garrettjonesgoogle
Copy link
Member

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
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