Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

feat: Improve client settings - #2097

Merged
yirutang merged 10 commits into
googleapis:mainfrom
yirutang:sample-keepalive
May 3, 2023
Merged

yirutang merged 10 commits into
googleapis:mainfrom
yirutang:sample-keepalive

Conversation

@yirutang

@yirutang yirutang commented May 1, 2023

Copy link
Copy Markdown
Contributor
  1. Add ExecutorProvider to sample
  2. Add KeepAlive setting to default set up.

@yirutang
yirutang requested review from a team and jainsahab May 1, 2023 22:29
@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. labels May 1, 2023
@yirutang
yirutang requested a review from GaoleMeng May 1, 2023 22:35
@yirutang yirutang changed the title Improve client settings feat: Improve client settings May 1, 2023
@yirutang yirutang added the owlbot:run Add this label to trigger the Owlbot post processor. label May 1, 2023
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 1, 2023
// https://googleapis.dev/java/google-cloud-bigquerystorage/latest/com/google/cloud/bigquery/storage/v1/JsonStreamWriter.html
streamWriter =
JsonStreamWriter.newBuilder(parentTable.toString(), BigQueryWriteClient.create()).build();
JsonStreamWriter.newBuilder(parentTable.toString(), BigQueryWriteClient.create())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

our example code create the client by "BigQueryWriteClient.create()" does that means we are not passing any keepalive setting?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added as a default setting. If I use a new transport in the sample, then the default setting will be overwritten.

I think in most cases, users doesn't need to reset the transport settings, our default is covering all that's needed (being set by Dataflow).

@Neenu1995 Neenu1995 added the owlbot:run Add this label to trigger the Owlbot post processor. label May 3, 2023
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label May 3, 2023
@gcf-owl-bot
gcf-owl-bot Bot requested a review from a team May 3, 2023 13:53
@yirutang
yirutang merged commit 4fc2fac into googleapis:main May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquerystorage Issues related to the googleapis/java-bigquerystorage API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants