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

Fix PubSub Iterator pullAsync: add callback to PubSubRpc.pull #1048

Merged
merged 2 commits into from
Jun 14, 2016

Conversation

mziccard
Copy link
Contributor

@mziccard mziccard commented Jun 9, 2016

This PR follows from the discussion in #1041 and fixes Future<Iterator<ReceivedMessage>> pullAsync.
PubSubRpc.pull changes signature to PullFuture pull(String). PullFuture extends Future<PullResponse> and allows to register callbacks to the RPC's future so messages can be added to the ack deadline renewer as soon as pulled.

@mziccard mziccard added the api: pubsub Issues related to the Pub/Sub API. label Jun 9, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 9, 2016
@mziccard
Copy link
Contributor Author

mziccard commented Jun 9, 2016

/cc @aozarov

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.03%) to 85.084% when pulling 73f20de on mziccard:pubsub-fix-pull into 2fd2d56 on GoogleCloudPlatform:pubsub-alpha.

@@ -89,6 +93,56 @@ protected ExecutorFactory executorFactory() {
}
}

private static final class PullFutureImpl implements PullFuture {

This comment was marked as spam.

This comment was marked as spam.

@aozarov
Copy link
Contributor

aozarov commented Jun 9, 2016

Looks good to me. I didn't look at the tests or the doc changes. I will let @lesv do that.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 85.113% when pulling 752fab0 on mziccard:pubsub-fix-pull into 2fd2d56 on GoogleCloudPlatform:pubsub-alpha.

@mziccard
Copy link
Contributor Author

mziccard commented Jun 9, 2016

Comment fixed. @lesv ready if you want to have al look.

@lesv
Copy link
Contributor

lesv commented Jun 13, 2016

Comments look fine
Tests - look fine, but I wonder if we can't test more than we do.
LGTM

@mziccard mziccard merged commit d487307 into googleapis:pubsub-alpha Jun 14, 2016
mziccard added a commit to mziccard/gcloud-java that referenced this pull request Jun 27, 2016
github-actions bot pushed a commit that referenced this pull request Oct 10, 2022
…telligence to v2.2.13 (#1048)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-video-intelligence](https://togithub.com/googleapis/java-video-intelligence) | `2.2.12` -> `2.2.13` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-video-intelligence/2.2.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-video-intelligence/2.2.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-video-intelligence/2.2.13/compatibility-slim/2.2.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-video-intelligence/2.2.13/confidence-slim/2.2.12)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-video-intelligence).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMjIuMyIsInVwZGF0ZWRJblZlciI6IjMyLjIyMi4zIn0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. 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