Class GcpManagedChannelBuilder (1.11.0)

public class GcpManagedChannelBuilder extends ForwardingChannelBuilder<GcpManagedChannelBuilder>

Inheritance

java.lang.Object > io.grpc.ManagedChannelBuilder > io.grpc.ForwardingChannelBuilder2 > io.grpc.ForwardingChannelBuilder > GcpManagedChannelBuilder

Static Methods

forDelegateBuilder(ManagedChannelBuilder<?> delegate)

public static GcpManagedChannelBuilder forDelegateBuilder(ManagedChannelBuilder<?> delegate)
Parameter
Name Description
delegate io.grpc.ManagedChannelBuilder<?>
Returns
Type Description
GcpManagedChannelBuilder

Methods

build()

public ManagedChannel build()

Returns the ManagedChannel built by the delegate by default. Overriding method can return different value.

Returns
Type Description
io.grpc.ManagedChannel
Overrides
io.grpc.ForwardingChannelBuilder2.build()

delegate()

protected ManagedChannelBuilder<?> delegate()

Returns the delegated ManagedChannelBuilder.

Returns
Type Description
io.grpc.ManagedChannelBuilder<?>
Overrides
io.grpc.ForwardingChannelBuilder.delegate()

setPoolSize(int poolSize) (deprecated)

public GcpManagedChannelBuilder setPoolSize(int poolSize)

Sets the maximum channel pool size. This will override the pool size configuration in ApiConfig. Deprecated. Use maxSize in GcpManagedChannelOptions.GcpChannelPoolOptions.

Parameter
Name Description
poolSize int
Returns
Type Description
GcpManagedChannelBuilder

withApiConfig(ApiConfig apiConfig)

public GcpManagedChannelBuilder withApiConfig(ApiConfig apiConfig)
Parameter
Name Description
apiConfig ApiConfig
Returns
Type Description
GcpManagedChannelBuilder

withApiConfigJsonFile(File file)

public GcpManagedChannelBuilder withApiConfigJsonFile(File file)
Parameter
Name Description
file File
Returns
Type Description
GcpManagedChannelBuilder

withApiConfigJsonString(String jsonString)

public GcpManagedChannelBuilder withApiConfigJsonString(String jsonString)
Parameter
Name Description
jsonString String
Returns
Type Description
GcpManagedChannelBuilder

withOptions(GcpManagedChannelOptions options)

public GcpManagedChannelBuilder withOptions(GcpManagedChannelOptions options)
Parameter
Name Description
options GcpManagedChannelOptions
Returns
Type Description
GcpManagedChannelBuilder