Package com.google.cloud.grpc
Class GcpManagedChannelBuilder
java.lang.Object
io.grpc.ManagedChannelBuilder<T>
io.grpc.ForwardingChannelBuilder2<T>
io.grpc.ForwardingChannelBuilder<GcpManagedChannelBuilder>
com.google.cloud.grpc.GcpManagedChannelBuilder
public class GcpManagedChannelBuilder
extends io.grpc.ForwardingChannelBuilder<GcpManagedChannelBuilder>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.ManagedChannelBuilder
io.grpc.ManagedChannelBuilder.InterceptorFactory -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.ManagedChannelbuild()Returns theManagedChannelbuilt by the delegate by default.protected io.grpc.ManagedChannelBuilder<?>delegate()Returns the delegatedManagedChannelBuilder.static GcpManagedChannelBuilderforDelegateBuilder(io.grpc.ManagedChannelBuilder<?> delegate) setPoolSize(int poolSize) Deprecated.withApiConfig(ApiConfig apiConfig) withApiConfigJsonFile(File file) withApiConfigJsonString(String jsonString) withOptions(GcpManagedChannelOptions options) Methods inherited from class io.grpc.ForwardingChannelBuilder
compressorRegistry, decompressorRegistry, defaultLoadBalancingPolicy, defaultServiceConfig, directExecutor, disableRetry, disableServiceConfigLookUp, enableRetry, executor, idleTimeout, intercept, intercept, keepAliveTime, keepAliveTimeout, keepAliveWithoutCalls, maxHedgedAttempts, maxInboundMessageSize, maxInboundMetadataSize, maxRetryAttempts, maxTraceEvents, nameResolverFactory, offloadExecutor, overrideAuthority, perRpcBufferLimit, proxyDetector, retryBufferSize, setBinaryLog, usePlaintext, userAgent, useTransportSecurityMethods inherited from class io.grpc.ForwardingChannelBuilder2
addMetricSink, addTransportFilter, forAddress, forTarget, interceptWithTarget, toString
-
Method Details
-
forDelegateBuilder
public static GcpManagedChannelBuilder forDelegateBuilder(io.grpc.ManagedChannelBuilder<?> delegate) -
setPoolSize
Deprecated.Sets the maximum channel pool size. This will override the pool size configuration in ApiConfig. Deprecated. Use maxSize in GcpManagedChannelOptions.GcpChannelPoolOptions. -
withApiConfig
-
withApiConfigJsonFile
-
withApiConfigJsonString
-
withOptions
-
delegate
protected io.grpc.ManagedChannelBuilder<?> delegate()Returns the delegatedManagedChannelBuilder.- Specified by:
delegatein classio.grpc.ForwardingChannelBuilder<GcpManagedChannelBuilder>
-
build
public io.grpc.ManagedChannel build()Returns theManagedChannelbuilt by the delegate by default. Overriding method can return different value.- Overrides:
buildin classio.grpc.ForwardingChannelBuilder2<GcpManagedChannelBuilder>
-