GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Use Futures.transform instead of lazyTransform when possible by mziccard · Pull Request #1168 · googleapis/google-cloud-java

Conversation

@mziccard

@mziccard mziccard commented Aug 17, 2016

Copy link
Copy Markdown
Contributor

This fixes #1148

@mattnworb this should make you happy :) Any change you can give it a try?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mziccard
Use Futures.transform instead of lazyTransform when possible
5e99284
@mziccard mziccard added api: pubsub Issues related to the Pub/Sub API. api: logging Issues related to the Cloud Logging API. labels Aug 17, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 17, 2016
@mattnworb

mattnworb commented Aug 17, 2016

Copy link
Copy Markdown

Awesome, thanks so much @mziccard !

I built a 0.2.8-SNAPSHOT from your branch and ran it in one of our applications that calls pubsub.publishAsync(). After executing the code path that calls that method a bunch of times, I do not see any threads created via the ThreadFactory that JdkFutureAdapters uses (a thread named like ListenableFutureAdapter-thread-%d). When running with prior versions, I see a few threads like ListenableFutureAdapter-thread-1.

thanks again!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coveralls

coveralls commented Aug 17, 2016

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.006%) to 85.864% when pulling 5e99284 on mziccard:future-transform into 36ba7c3 on GoogleCloudPlatform:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mziccard

mziccard commented Aug 18, 2016

Copy link
Copy Markdown
Contributor Author

/cc @lesv

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lesv

lesv commented Aug 18, 2016

Copy link
Copy Markdown
Contributor

LGTM - I'm presuming some integration tests will run to verify this for logging.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mziccard
mziccard merged commit 4b1f0e9 into googleapis:master Aug 21, 2016
@mziccard mziccard mentioned this pull request Jan 30, 2017
use RpcFuture and remove old BundlingSettings #1572
Merged
github-actions Bot pushed a commit that referenced this pull request Jun 23, 2022
@gcf-owl-bot
feat: Enable REST transport for most of Java and Go clients (#1168)
2fd0096
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 456641589

Source-Link: googleapis/googleapis@8a251f5

Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9
github-actions Bot pushed a commit to suztomo/google-cloud-java that referenced this pull request Jun 29, 2022
@gcf-owl-bot
chore: remove java 7 units check (googleapis#1168) (googleapis#572)
00b669e
Source-Link: googleapis/synthtool@1a2878d
Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:12cbdc4f137152a1a8b83f50ebc1a4098be0d3baff78b46efaec306f7cfafd13

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
github-actions Bot pushed a commit that referenced this pull request Jul 1, 2022
@gcf-owl-bot
chore: remove java 7 units check (#1168) (#301)
ea45664
Source-Link: googleapis/synthtool@1a2878d
Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:12cbdc4f137152a1a8b83f50ebc1a4098be0d3baff78b46efaec306f7cfafd13

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
github-actions Bot pushed a commit to suztomo/google-cloud-java that referenced this pull request Jul 1, 2022
@release-please
chore(main): release 2.3.0 (googleapis#1171)
3e4cfe8
🤖 I have created a release *beep* *boop*
---


## [2.3.0](googleapis/java-automl@v2.2.4...v2.3.0) (2022-06-30)


### Features

* Enable REST transport for most of Java and Go clients ([googleapis#1168](googleapis/java-automl#1168)) ([2fd0096](googleapis/java-automl@2fd0096))


### Bug Fixes

* update gapic-generator-java with mock service generation fixes ([googleapis#1174](googleapis/java-automl#1174)) ([e5fb07e](googleapis/java-automl@e5fb07e))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
meltsufin pushed a commit that referenced this pull request Dec 22, 2025
@renovate-bot @gcf-owl-bot
chore(deps): update dependency com.google.cloud:google-cloud-logging …
84b93a8
…to v3.12.0 (#1168)

* chore(deps): update dependency com.google.cloud:google-cloud-logging to v3.12.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Jan 6, 2026
@release-please
chore(main): release 0.130.23-alpha-SNAPSHOT (#1168)
d5e57c0
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Jan 22, 2026
@renovate-bot @gcf-owl-bot
chore(deps): update dependency com.google.cloud:libraries-bom to v26.…
c8cc09a
…22.0 (#1168)

* chore(deps): update dependency com.google.cloud:libraries-bom to v26.22.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 11, 2026
@renovate-bot @gcf-owl-bot
chore(deps): update dependency com.google.cloud:google-cloud-logging …
eddb597
…to v3.12.0 (googleapis#1168)

* chore(deps): update dependency com.google.cloud:google-cloud-logging to v3.12.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
@renovate-bot
chore(deps): update dependency com.google.cloud:google-cloud-spanner-…
9c96789
…jdbc to v2.9.11 (googleapis#1168)
suztomo pushed a commit that referenced this pull request Mar 30, 2026
@renovate-bot
chore(deps): update dependency com.google.cloud:google-cloud-nio to v…
afc48f5
…0.126.14 (#1168)
lqiu96 pushed a commit that referenced this pull request Apr 1, 2026
@renovate-bot
chore(deps): update dependency com.google.cloud:google-cloud-nio to v…
311c52e
…0.126.14 (#1168)
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@kamalaboulhosn @gcf-owl-bot
samples: create BigQuery subscription (#1168)
d965075
* feat: Add flow control support to publisher

* make suggested fixes

* chore: Remove note that ordering keys requires enablements.

* feat: Add support for server-side flow control

* Revert "chore: Remove note that ordering keys requires enablements."

This reverts commit 9c113c3e32c28cf0d1de8aad3409b5c509fb1ada.

* fix: Fix import order

* fix: Make error message more clear about where ordering must be enabled when publishing.

* fix: Ensure that messages that are in pending batches for an ordering key are canceled when a previous publish for the ordering keys fails.

* fix: Only check keyHasError if ordering keys is non-empty

* fix: Set publish timeouts to be consistent with desired values

* samples: create BigQuery subscription

* samples: create BigQuery subscription

* samples: create BigQuery subscription

* Make table ID more clear

* Fix string

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Fix pom and test creation/teardown

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request May 1, 2026
@kamalaboulhosn @gcf-owl-bot
samples: create BigQuery subscription (#1168)
9bca996
* feat: Add flow control support to publisher

* make suggested fixes

* chore: Remove note that ordering keys requires enablements.

* feat: Add support for server-side flow control

* Revert "chore: Remove note that ordering keys requires enablements."

This reverts commit 9c113c3e32c28cf0d1de8aad3409b5c509fb1ada.

* fix: Fix import order

* fix: Make error message more clear about where ordering must be enabled when publishing.

* fix: Ensure that messages that are in pending batches for an ordering key are canceled when a previous publish for the ordering keys fails.

* fix: Only check keyHasError if ordering keys is non-empty

* fix: Set publish timeouts to be consistent with desired values

* samples: create BigQuery subscription

* samples: create BigQuery subscription

* samples: create BigQuery subscription

* Make table ID more clear

* Fix string

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Fix pom and test creation/teardown

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: logging Issues related to the Cloud Logging API. api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

request: return ListenableFutures in PubSub async methods rather than bare Futures

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@mziccard @mattnworb @coveralls @lesv @googlebot
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.