Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Conversation

@igorbernstein2
Copy link
Contributor

Fixes #573

This introduces a channel configurator function which can be set on a InstantiatingGrpcChannelProvider. It will be invoked right before creating individual channels in the pool.

This is necessary because InstantiatingGrpcChannelProvider creates a few package private classes that users can't instantiate themselves

…PC channels in InstantiatingGrpcChannelProvider

Fixes googleapis#573
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 27, 2018
@codecov-io
Copy link

codecov-io commented Dec 27, 2018

Codecov Report

Merging #629 into master will increase coverage by 0.01%.
The diff coverage is 85.71%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #629      +/-   ##
============================================
+ Coverage     74.94%   74.96%   +0.01%     
- Complexity      935      936       +1     
============================================
  Files           177      177              
  Lines          4099     4106       +7     
  Branches        328      329       +1     
============================================
+ Hits           3072     3078       +6     
- Misses          874      875       +1     
  Partials        153      153
Impacted Files Coverage Δ Complexity Δ
...api/gax/grpc/InstantiatingGrpcChannelProvider.java 66.25% <85.71%> (+0.87%) 27 <0> (+1) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1d492dc...9cf5818. Read the comment docs.

Copy link
Contributor

@yihanzhen yihanzhen left a comment

Choose a reason for hiding this comment

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

LGTM after the nit. @andreamlin @vam-google Do you guys want to take a look?

* Add a callback that can intercept channel creation.
*
* <p>This can be used for advanced configuration like setting the netty event loop. The
* callback will be invoked with a fully configured channel builder, which can the callback can

This comment was marked as spam.

This comment was marked as spam.

@igorbernstein2
Copy link
Contributor Author

Cool if I merge this?

@yihanzhen
Copy link
Contributor

Sure please do!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants