Add a callback that can intercept channel creation.
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 the callback can
augment or replace.
By setting a channelPrimer, the ChannelPool created by the provider will be refreshing
ChannelPool. channelPrimer will be invoked periodically when the channels are refreshed
This is public only for technical reasons, for advanced usage.
Sets the Executor for this TransportChannelProvider.
This is optional; if it is not provided, needsExecutor() will return true, meaning that an
Executor must be provided when getChannel is called on the constructed
TransportChannelProvider instance. Note: GrpcTransportProvider will automatically provide its
own Executor in this circumstance when it calls getChannel.
Sets the HeaderProvider for this TransportChannelProvider.
This is optional; if it is not provided, needsHeaders() will return true, meaning that
headers must be provided when getChannel is called on the constructed
TransportChannelProvider instance.
Sets the GrpcInterceptorProvider for this TransportChannelProvider.
The provider will be called once for each underlying gRPC ManagedChannel that is created.
It is recommended to return a new list of new interceptors on each call so that interceptors
are not shared among channels, but this is not required.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This page provides documentation for the `InstantiatingGrpcChannelProvider.Builder` class, part of the Google API Client Library for Java (GAX), specifically version 2.42.0, which has a list of previous versions."],["The `InstantiatingGrpcChannelProvider.Builder` is a class used to construct instances of `InstantiatingGrpcChannelProvider`, handling configurations for gRPC channels."],["This builder supports setting parameters such as endpoint, credentials, executor, headers, interceptors, keep-alive settings, maximum message size, and channel pool settings."],["Methods related to direct path configuration (e.g., `setAttemptDirectPath`, `setDirectPathServiceConfig`) are marked as internal-only and are not stable for general application use."],["Several methods related to channel pooling (`setPoolSize`, `setChannelsPerCpu`) are deprecated and should now use the `setChannelPoolSettings` method instead, indicating an evolution in channel management."]]],[]]