From d0c5191525d5d157812cae9551fc15bb70caab7e Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Tue, 2 Apr 2024 20:13:35 +0000 Subject: [PATCH] feat: Add ChannelPoolSettings Getter for gRPC's ChannelProvider (#2612) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #2610 ☕️ --------- Co-authored-by: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> --- .../api/gax/grpc/InstantiatingGrpcChannelProvider.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java b/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java index bf8ffc81da..5969ed4693 100644 --- a/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java +++ b/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java @@ -473,6 +473,12 @@ public Integer getMaxInboundMetadataSize() { return maxInboundMetadataSize; } + /** The configured channel pool settings used for gRPC's ChannelProvider */ + @BetaApi("Channel pool sizing api is not yet stable") + public ChannelPoolSettings getChannelPoolSettings() { + return channelPoolSettings; + } + @Override public boolean shouldAutoClose() { return true;