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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[[["\u003cp\u003eThis document provides a comprehensive list of available versions for the \u003ccode\u003eInstantiatingGrpcChannelProvider.Builder\u003c/code\u003e, with the latest version being 2.63.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInstantiatingGrpcChannelProvider.Builder\u003c/code\u003e class, which inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, offers methods to configure and build instances for managing gRPC channels.\u003c/p\u003e\n"],["\u003cp\u003eMethods include \u003ccode\u003ebuild()\u003c/code\u003e to create the provider, and various \u003ccode\u003eget\u003c/code\u003e methods to retrieve channel settings like \u003ccode\u003egetEndpoint()\u003c/code\u003e, \u003ccode\u003egetKeepAliveTime()\u003c/code\u003e, \u003ccode\u003egetMaxInboundMessageSize()\u003c/code\u003e and more.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides various \u003ccode\u003eset\u003c/code\u003e methods for configuring the channel provider, such as \u003ccode\u003esetEndpoint()\u003c/code\u003e, \u003ccode\u003esetCredentials()\u003c/code\u003e, \u003ccode\u003esetExecutor()\u003c/code\u003e, \u003ccode\u003esetKeepAliveTime()\u003c/code\u003e, and for setting DirectPath options.\u003c/p\u003e\n"],["\u003cp\u003eDeprecated methods like \u003ccode\u003egetPoolSize()\u003c/code\u003e and \u003ccode\u003esetPoolSize()\u003c/code\u003e, \u003ccode\u003esetChannelsPerCpu()\u003c/code\u003e and \u003ccode\u003esetExecutorProvider()\u003c/code\u003e are included, with recommendations to use the newer \u003ccode\u003esetChannelPoolSettings()\u003c/code\u003e and \u003ccode\u003esetExecutor()\u003c/code\u003e methods instead.\u003c/p\u003e\n"]]],[],null,[]]